Ignore:
Timestamp:
2020-10-28T20:41:00+01:00 (6 years ago)
Author:
Don-vip
Message:

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File:
1 edited

Legend:

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

    r16182 r17275  
    22package org.openstreetmap.josm.tools;
    33
    4 import org.junit.Rule;
    5 import org.junit.Test;
     4import org.junit.jupiter.api.extension.RegisterExtension;
     5import org.junit.jupiter.api.Test;
    66import org.openstreetmap.josm.testutils.JOSMTestRules;
    77
    8 import static org.junit.Assert.assertEquals;
     8import static org.junit.jupiter.api.Assertions.assertEquals;
    99
    1010import java.util.Arrays;
     
    1717 * Unit tests of {@link StreamUtils} class.
    1818 */
    19 public class StreamUtilsTest {
     19class StreamUtilsTest {
    2020
    2121    /**
    2222     * Setup rule.
    2323     */
    24     @Rule
     24    @RegisterExtension
    2525    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    2626    public JOSMTestRules test = new JOSMTestRules();
     
    3131     */
    3232    @Test
    33     public void testUtilityClass() throws ReflectiveOperationException {
     33    void testUtilityClass() throws ReflectiveOperationException {
    3434        UtilityClassTestUtil.assertUtilityClassWellDefined(StreamUtils.class);
    3535    }
     
    3939     */
    4040    @Test
    41     public void testReverseStream() {
     41    void testReverseStream() {
    4242        assertEquals("baz/bar/foo",
    4343                StreamUtils.reversedStream(Arrays.asList("foo", "bar", "baz")).collect(Collectors.joining("/")));
Note: See TracChangeset for help on using the changeset viewer.