Changeset 10222 in josm for trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
- Timestamp:
- 2016-05-15T21:14:06+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
r10219 r10222 13 13 import org.junit.Test; 14 14 import org.openstreetmap.josm.JOSMFixture; 15 16 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 15 17 16 18 /** … … 59 61 this.attributes = attributes; 60 62 this.ready = true; 61 this.notify ();63 this.notifyAll(); 62 64 } 63 65 } … … 71 73 } 72 74 75 /** 76 * Test status codes 77 * @throws InterruptedException in case of thread interruption 78 * @throws IOException in case of I/O error 79 */ 73 80 @Test 74 public void testStatusCodes() throws Exception{81 public void testStatusCodes() throws IOException, InterruptedException { 75 82 doTestStatusCode(200); 76 83 // can't test for 3xx, as httpstat.us redirects finally to 200 page … … 85 92 } 86 93 94 /** 95 * Test unknown host 96 * @throws InterruptedException in case of thread interruption 97 * @throws IOException in case of I/O error 98 */ 87 99 @Test 88 public void testUnknownHost() throws Exception { 100 @SuppressFBWarnings(value = "WA_NOT_IN_LOOP") 101 public void testUnknownHost() throws IOException, InterruptedException { 89 102 TestCachedTileLoaderJob job = new TestCachedTileLoaderJob("http://unkownhost.unkownhost/unkown"); 90 103 Listener listener = new Listener(); … … 98 111 } 99 112 100 private void doTestStatusCode(int responseCode) throws Exception { 113 @SuppressFBWarnings(value = "WA_NOT_IN_LOOP") 114 private void doTestStatusCode(int responseCode) throws IOException, InterruptedException { 101 115 TestCachedTileLoaderJob job = getStatusLoaderJob(responseCode); 102 116 Listener listener = new Listener();
Note:
See TracChangeset
for help on using the changeset viewer.