Changeset 8857 in josm for trunk/test/unit/org/openstreetmap/josm/data/osm
- Timestamp:
- 2015-10-11T17:28:19+02:00 (10 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/osm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/osm/APIDataSetTest.java
r8510 r8857 14 14 import org.openstreetmap.josm.data.APIDataSet; 15 15 16 /** 17 * Unit tests for class {@link APIDataSet}. 18 */ 16 19 public class APIDataSetTest { 17 20 21 /** 22 * Setup test. 23 */ 18 24 @BeforeClass 19 25 public static void init() { -
trunk/test/unit/org/openstreetmap/josm/data/osm/DataSetMergerTest.java
r8565 r8857 24 24 import org.openstreetmap.josm.data.projection.Projections; 25 25 26 /** 27 * Unit tests for class {@link DataSetMerger}. 28 */ 26 29 public class DataSetMergerTest { 27 30 31 /** 32 * Setup test. 33 */ 28 34 @BeforeClass 29 35 public static void init() { -
trunk/test/unit/org/openstreetmap/josm/data/osm/FilterTest.java
r8510 r8857 24 24 import org.openstreetmap.josm.io.OsmReader; 25 25 26 /** 27 * Unit tests for class {@link Filter}. 28 */ 26 29 public class FilterTest { 27 30 … … 35 38 36 39 @Test 37 public void basic _test() throws ParseError {40 public void basic() throws ParseError { 38 41 DataSet ds = new DataSet(); 39 42 Node n1 = new Node(new LatLon(0, 0)); … … 63 66 64 67 @Test 65 public void filter _test() throws ParseError, IllegalDataException, IOException {68 public void filter() throws ParseError, IllegalDataException, IOException { 66 69 for (int i : new int[] {1, 2, 3, 11, 12, 13, 14, 15}) { 67 70 DataSet ds; -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveKeyHandlingTest.java
r8510 r8857 15 15 * Some unit test cases for basic tag management on {@link OsmPrimitive}. Uses 16 16 * {@link Node} for the tests, {@link OsmPrimitive} is abstract. 17 *18 17 */ 19 18 public class OsmPrimitiveKeyHandlingTest { 20 19 20 /** 21 * Setup test. 22 */ 21 23 @BeforeClass 22 24 public static void init() { -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java
r8510 r8857 15 15 public class OsmPrimitiveTest { 16 16 17 /** 18 * Setup test. 19 */ 17 20 @BeforeClass 18 21 public static void init() { -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmUtilsTest.java
r8624 r8857 2 2 package org.openstreetmap.josm.data.osm; 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 import static org.junit.Assert.assertTrue; 7 6 … … 12 11 public class OsmUtilsTest { 13 12 13 /** 14 * Setup test. 15 */ 14 16 @BeforeClass 15 17 public static void setUp() { … … 21 23 final OsmPrimitive p = OsmUtils.createPrimitive("way name=Foo railway=rail"); 22 24 assertTrue(p instanceof Way); 23 assert That(p.keySet().size(), is(2));24 assert That(p.get("name"), is("Foo"));25 assert That(p.get("railway"), is("rail"));25 assertEquals(2, p.keySet().size()); 26 assertEquals("Foo", p.get("name")); 27 assertEquals("rail", p.get("railway")); 26 28 } 27 29 … … 29 31 public void testArea() throws Exception { 30 32 final OsmPrimitive p = OsmUtils.createPrimitive("area name=Foo railway=rail"); 31 assert That(p.getType(), is(OsmPrimitiveType.WAY));33 assertEquals(OsmPrimitiveType.WAY, p.getType()); 32 34 assertTrue(p.getKeys().equals(OsmUtils.createPrimitive("way name=Foo railway=rail").getKeys())); 33 34 35 } 35 36 … … 38 39 OsmUtils.createPrimitive("noway name=Foo"); 39 40 } 40 41 41 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/QuadBucketsTest.java
r7937 r8857 23 23 public class QuadBucketsTest { 24 24 25 /** 26 * Setup test. 27 */ 25 28 @BeforeClass 26 29 public static void init() { -
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryNodeTest.java
r8514 r8857 12 12 import org.openstreetmap.josm.data.osm.User; 13 13 14 /** 15 * Unit tests for class {@link HistoryNode}. 16 */ 14 17 public class HistoryNodeTest { 15 18 -
trunk/test/unit/org/openstreetmap/josm/data/osm/history/HistoryWayTest.java
r8513 r8857 14 14 import org.openstreetmap.josm.data.osm.User; 15 15 16 /** 17 * Unit tests for class {@link HistoryWay}. 18 */ 16 19 public class HistoryWayTest { 17 20 -
trunk/test/unit/org/openstreetmap/josm/data/osm/visitor/MergeSourceBuildingVisitorTest.java
r8510 r8857 21 21 import org.openstreetmap.josm.data.osm.Way; 22 22 23 /** 24 * Unit tests for class {@link MergeSourceBuildingVisitor}. 25 */ 23 26 public class MergeSourceBuildingVisitorTest { 24 27
Note:
See TracChangeset
for help on using the changeset viewer.