Ignore:
Timestamp:
2024-04-24T20:02:57+02:00 (6 weeks ago)
Author:
taylor.smock
Message:

Fix last failing test in Java 21

  • Generate Java 21 image files (probably from r19043: Drop COMPAT locale provider).
  • Replace most deprecated function calls and classes in tests with non-deprecated functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/UtilsTest.java

    r18811 r19056  
    1111import java.io.File;
    1212import java.io.IOException;
     13import java.io.InputStream;
    1314import java.util.ArrayList;
    1415import java.util.Arrays;
     
    2223import java.util.regex.Pattern;
    2324
     25import org.junit.jupiter.api.Test;
     26
    2427import net.trajano.commons.testing.UtilityClassTestUtil;
    25 import org.junit.jupiter.api.Test;
    2628
    2729/**
     
    354356     * Tests if readBytesFromStream handles null streams (might happen when there is no data on error stream)
    355357     * @throws IOException in case of I/O error
    356      */
    357     @Test
     358     * @deprecated {@link Utils#readBytesFromStream(InputStream)} is deprecated since the JVM has the same functionality.
     359     */
     360    @Test
     361    @Deprecated
    358362    void testNullStreamForReadBytesFromStream() throws IOException {
    359363        assertEquals(0, Utils.readBytesFromStream(null).length, "Empty on null stream");
Note: See TracChangeset for help on using the changeset viewer.