Changeset 15732 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-01-19T18:57:26+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/StreamUtilsTest.java
r11921 r15732 5 5 import org.junit.Test; 6 6 import org.openstreetmap.josm.testutils.JOSMTestRules; 7 8 import static org.junit.Assert.assertEquals; 9 10 import java.util.Arrays; 11 import java.util.stream.Collectors; 7 12 8 13 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 29 34 UtilityClassTestUtil.assertUtilityClassWellDefined(StreamUtils.class); 30 35 } 36 37 /** 38 * Tests {@link StreamUtils#reversedStream(java.util.List)} 39 */ 40 @Test 41 public void testReverseStream() { 42 assertEquals("baz/bar/foo", 43 StreamUtils.reversedStream(Arrays.asList("foo", "bar", "baz")).collect(Collectors.joining("/"))); 44 } 31 45 }
Note:
See TracChangeset
for help on using the changeset viewer.