Changeset 8857 in josm for trunk/test/unit/org/openstreetmap/josm/data/cache
- Timestamp:
- 2015-10-11T17:28:19+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
r8836 r8857 13 13 import org.openstreetmap.josm.JOSMFixture; 14 14 15 /** 16 * Unit tests for class {@link JCSCachedTileLoaderJob}. 17 */ 15 18 public class JCSCachedTileLoaderJobTest { 19 16 20 private static class TestCachedTileLoaderJob extends JCSCachedTileLoaderJob<String, CacheEntry> { 17 21 private String url; … … 44 48 return new CacheEntry("dummy".getBytes()); 45 49 } 46 47 50 } 48 51 49 52 private static class Listener implements ICachedLoaderListener { 50 private CacheEntry data;51 53 private CacheEntryAttributes attributes; 52 private LoadResult result;53 54 private boolean ready; 54 55 55 56 @Override 56 57 public synchronized void loadingFinished(CacheEntry data, CacheEntryAttributes attributes, LoadResult result) { 57 this.data = data;58 58 this.attributes = attributes; 59 this.result = result;60 59 this.ready = true; 61 60 this.notify(); 62 61 } 62 } 63 63 64 }65 64 /** 66 65 * Setup test. … … 108 107 } 109 108 assertEquals(responseCode, listener.attributes.getResponseCode()); 110 111 109 } 112 110 … … 114 112 return new TestCachedTileLoaderJob("http://httpstat.us/" + responseCode); 115 113 } 116 117 114 } 118
Note:
See TracChangeset
for help on using the changeset viewer.