Changeset 9973 in josm for trunk/test/unit/org/openstreetmap/josm/data
- Timestamp:
- 2016-03-12T23:58:33+01:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
r8857 r9973 72 72 @Test 73 73 public void testStatusCodes() throws Exception { 74 testStatusCode(200);74 doTestStatusCode(200); 75 75 // can't test for 3xx, as httpstat.us redirects finally to 200 page 76 testStatusCode(401);77 testStatusCode(402);78 testStatusCode(403);79 testStatusCode(404);80 testStatusCode(405);81 testStatusCode(500);82 testStatusCode(501);83 testStatusCode(502);76 doTestStatusCode(401); 77 doTestStatusCode(402); 78 doTestStatusCode(403); 79 doTestStatusCode(404); 80 doTestStatusCode(405); 81 doTestStatusCode(500); 82 doTestStatusCode(501); 83 doTestStatusCode(502); 84 84 } 85 85 86 86 @Test 87 public void testUnkownHost() throws Exception { 87 public void testUnknownHost() throws Exception { 88 88 TestCachedTileLoaderJob job = new TestCachedTileLoaderJob("http://unkownhost.unkownhost/unkown"); 89 89 Listener listener = new Listener(); … … 97 97 } 98 98 99 p ublic void testStatusCode(int responseCode) throws Exception {99 private void doTestStatusCode(int responseCode) throws Exception { 100 100 TestCachedTileLoaderJob job = getStatusLoaderJob(responseCode); 101 101 Listener listener = new Listener(); -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r9902 r9973 10 10 11 11 import org.junit.BeforeClass; 12 import org.junit.Ignore; 12 13 import org.junit.Test; 13 14 import org.openstreetmap.gui.jmapviewer.tilesources.TemplatedTMSTileSource; … … 84 85 assertEquals("TileXMax", 4, testSource.getTileXMax(2)); 85 86 assertEquals("TileYMax", 4, testSource.getTileYMax(2)); 86 87 87 } 88 88 … … 106 106 } 107 107 108 // XXX - disable this test, needs further working109 // @Test108 @Test 109 @Ignore("disable this test, needs further working") // XXX 110 110 public void testWALLONIENoMatrixDimension() throws MalformedURLException, IOException { 111 111 Main.setProjection(Projections.getProjectionByCode("EPSG:31370")); … … 224 224 } 225 225 226 227 // XXX: disabled as this needs user action 228 //@Test 226 @Test 227 @Ignore("disabled as this needs user action") // XXX 229 228 public void testTwoTileSetsForOneProjection() throws Exception { 230 229 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); … … 236 235 } 237 236 238 // XXX: disabled as this needs user action239 // @Test237 @Test 238 @Ignore("disabled as this needs user action") // XXX 240 239 public void testManyLayersScrollbars() throws Exception { 241 240 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); … … 246 245 247 246 @Test 248 public void testP raserForDuplicateTags() throws Exception {247 public void testParserForDuplicateTags() throws Exception { 249 248 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 250 249 WMTSTileSource testSource = new WMTSTileSource(testDuplicateTags); … … 258 257 259 258 @Test 260 public void testP raserForMissingStyleIdentifier() throws Exception {259 public void testParserForMissingStyleIdentifier() throws Exception { 261 260 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 262 261 WMTSTileSource testSource = new WMTSTileSource(testMissingStyleIdentifer); … … 268 267 assertEquals("Latitude", expected.lat(), ll.lat(), 1e-05); 269 268 assertEquals("Longitude", expected.lon(), ll.lon(), 1e-05); 270 271 269 } 272 270
Note:
See TracChangeset
for help on using the changeset viewer.