Changeset 14069 in josm
- Timestamp:
- 2018-08-01T19:20:20+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/DownloadWmsAlongTrackActionTest.java
r14068 r14069 6 6 import static org.junit.Assert.assertNull; 7 7 import static org.junit.Assert.assertTrue; 8 import static java.util.concurrent.TimeUnit.MILLISECONDS; 8 9 10 import org.awaitility.Awaitility; 9 11 import org.junit.Rule; 10 12 import org.junit.Test; … … 47 49 final TileSourceRule tileSourceRule = this.test.getTileSourceRule(); 48 50 49 TMSLayer layer = new TMSLayer(51 final TMSLayer layer = new TMSLayer( 50 52 tileSourceRule.getSourcesList().get(0).getImageryInfo(tileSourceRule.port()) 51 53 ); … … 58 60 assertNotNull(task); 59 61 task.run(); 60 // Ensure cache is not empty61 assertFalse(TMSLayer.getCache().getMatching(".*").isEmpty());62 // Ensure cache is (eventually) not empty 63 Awaitility.await().atMost(10000, MILLISECONDS).until(() -> !TMSLayer.getCache().getMatching(".*").isEmpty()); 62 64 } finally { 63 65 // Ensure we clean the place before leaving, even if test fails.
Note:
See TracChangeset
for help on using the changeset viewer.