Changeset 9489 in josm for trunk/test/unit/org/openstreetmap/josm/data
- Timestamp:
- 2016-01-16T16:41:44+01:00 (11 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data
- Files:
-
- 4 edited
-
imagery/WMTSTileSourceTest.java (modified) (2 diffs)
-
osm/MultipolygonBuilderTest.java (modified) (3 diffs)
-
osm/OsmPrimitiveTest.java (modified) (1 diff)
-
osm/WaySegmentTest.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r9095 r9489 14 14 import org.openstreetmap.josm.JOSMFixture; 15 15 import org.openstreetmap.josm.Main; 16 import org.openstreetmap.josm.TestUtils; 16 17 import org.openstreetmap.josm.data.Bounds; 17 18 import org.openstreetmap.josm.data.coor.LatLon; … … 24 25 25 26 private ImageryInfo testImageryTMS = new ImageryInfo("test imagery", "http://localhost", "tms", null, null); 26 private ImageryInfo testImageryPSEUDO_MERCATOR = getImagery( "test/data/wmts/getcapabilities-pseudo-mercator.xml");27 private ImageryInfo testImageryTOPO_PL = getImagery( "test/data/wmts/getcapabilities-TOPO.xml");28 private ImageryInfo testImageryORTO_PL = getImagery( "test/data/wmts/getcapabilities-ORTO.xml");29 private ImageryInfo testImageryWIEN = getImagery( "test/data/wmts/getCapabilities-wien.xml");30 private ImageryInfo testImageryWALLONIE = getImagery( "test/data/wmts/WMTSCapabilities-Wallonie.xml");31 private ImageryInfo testImageryOntario = getImagery( "test/data/wmts/WMTSCapabilities-Ontario.xml");32 private ImageryInfo testImagery12168 = getImagery( "test/data/wmts/bug12168-WMTSCapabilities.xml");33 private ImageryInfo testLotsOfLayers = getImagery( "test/data/wmts/getCapabilities-lots-of-layers.xml");27 private ImageryInfo testImageryPSEUDO_MERCATOR = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-pseudo-mercator.xml"); 28 private ImageryInfo testImageryTOPO_PL = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-TOPO.xml"); 29 private ImageryInfo testImageryORTO_PL = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-ORTO.xml"); 30 private ImageryInfo testImageryWIEN = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-wien.xml"); 31 private ImageryInfo testImageryWALLONIE = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Wallonie.xml"); 32 private ImageryInfo testImageryOntario = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Ontario.xml"); 33 private ImageryInfo testImagery12168 = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12168-WMTSCapabilities.xml"); 34 private ImageryInfo testLotsOfLayers = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-lots-of-layers.xml"); 34 35 35 36 /** -
trunk/test/unit/org/openstreetmap/josm/data/osm/MultipolygonBuilderTest.java
r9480 r9489 4 4 import static org.junit.Assert.assertNull; 5 5 6 import java.io.FileInputStream;7 6 import java.io.InputStream; 8 7 … … 13 12 import org.openstreetmap.josm.JOSMFixture; 14 13 import org.openstreetmap.josm.TestUtils; 15 import org.openstreetmap.josm.io.Compression;16 14 import org.openstreetmap.josm.io.OsmReader; 17 15 … … 41 39 @Test 42 40 public void testTicket12376() throws Exception { 43 try (InputStream is = new FileInputStream(TestUtils.getRegressionDataFile(12376, "multipolygon_hang.osm.bz2"))) { 44 DataSet ds = OsmReader.parseDataSet(Compression.BZIP2.getUncompressedInputStream(is), null); 45 for (Relation r : ds.getRelations()) { 41 try (InputStream is = TestUtils.getRegressionDataStream(12376, "multipolygon_hang.osm.bz2")) { 42 for (Relation r : OsmReader.parseDataSet(is, null).getRelations()) { 46 43 assertNull(new MultipolygonBuilder().makeFromWays(r.getMemberPrimitives(Way.class))); 47 44 } -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java
r9214 r9489 13 13 import org.openstreetmap.josm.data.projection.Projections; 14 14 15 /** 16 * Unit tests of the {@code OsmPrimitive} class. 17 */ 15 18 public class OsmPrimitiveTest { 16 19 -
trunk/test/unit/org/openstreetmap/josm/data/osm/WaySegmentTest.java
r9214 r9489 10 10 import org.openstreetmap.josm.data.coor.LatLon; 11 11 12 /** 13 * Unit tests of the {@code WaySegment} class. 14 */ 12 15 public class WaySegmentTest { 13 16 17 /** 18 * Setup test. 19 */ 14 20 @Before 15 public void setUp() throws Exception{21 public void setUp() { 16 22 JOSMFixture.createUnitTestFixture().init(); 17 23 }
Note:
See TracChangeset
for help on using the changeset viewer.
