Changeset 8857 in josm for trunk/test/unit/org/openstreetmap/josm/actions/CopyActionTest.java
- Timestamp:
- 2015-10-11T17:28:19+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/CopyActionTest.java
r8624 r8857 2 2 package org.openstreetmap.josm.actions; 3 3 4 import static org.hamcrest.CoreMatchers.is; 5 import static org.junit.Assert.assertThat; 4 import static org.junit.Assert.assertEquals; 6 5 7 6 import java.util.Arrays; … … 14 13 import org.openstreetmap.josm.data.osm.Way; 15 14 15 /** 16 * Unit tests for class {@link CopyAction}. 17 */ 16 18 public class CopyActionTest { 17 19 20 /** 21 * Setup test. 22 */ 18 23 @BeforeClass 19 24 public static void setUpBeforeClass() { … … 24 29 public void testCopyStringWay() throws Exception { 25 30 final Way way = new Way(123L); 26 assert That(CopyAction.getCopyString(Collections.singleton(way)), is("way 123"));31 assertEquals("way 123", CopyAction.getCopyString(Collections.singleton(way))); 27 32 } 28 33 … … 31 36 final Way way = new Way(123L); 32 37 final Relation relation = new Relation(456); 33 assert That(CopyAction.getCopyString(Arrays.asList(way, relation)), is("way 123,relation 456"));34 assert That(CopyAction.getCopyString(Arrays.asList(relation, way)), is("relation 456,way 123"));38 assertEquals("way 123,relation 456", CopyAction.getCopyString(Arrays.asList(way, relation))); 39 assertEquals("relation 456,way 123", CopyAction.getCopyString(Arrays.asList(relation, way))); 35 40 } 36 41 }
Note:
See TracChangeset
for help on using the changeset viewer.