Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/tools/StreamUtilsTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/StreamUtilsTest.java
r16182 r17275 2 2 package org.openstreetmap.josm.tools; 3 3 4 import org.junit. Rule;5 import org.junit.Test; 4 import org.junit.jupiter.api.extension.RegisterExtension; 5 import org.junit.jupiter.api.Test; 6 6 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 7 8 import static org.junit. Assert.assertEquals;8 import static org.junit.jupiter.api.Assertions.assertEquals; 9 9 10 10 import java.util.Arrays; … … 17 17 * Unit tests of {@link StreamUtils} class. 18 18 */ 19 publicclass StreamUtilsTest {19 class StreamUtilsTest { 20 20 21 21 /** 22 22 * Setup rule. 23 23 */ 24 @R ule24 @RegisterExtension 25 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 26 26 public JOSMTestRules test = new JOSMTestRules(); … … 31 31 */ 32 32 @Test 33 publicvoid testUtilityClass() throws ReflectiveOperationException {33 void testUtilityClass() throws ReflectiveOperationException { 34 34 UtilityClassTestUtil.assertUtilityClassWellDefined(StreamUtils.class); 35 35 } … … 39 39 */ 40 40 @Test 41 publicvoid testReverseStream() {41 void testReverseStream() { 42 42 assertEquals("baz/bar/foo", 43 43 StreamUtils.reversedStream(Arrays.asList("foo", "bar", "baz")).collect(Collectors.joining("/")));
Note:
See TracChangeset
for help on using the changeset viewer.
