Changeset 9973 in josm for trunk/test/unit/org/openstreetmap/josm/data/cache
- Timestamp:
- 2016-03-12T23:58:33+01:00 (7 years ago)
- File:
-
- 1 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 testUnk ownHost() 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();
Note: See TracChangeset
for help on using the changeset viewer.