Changeset 16913 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-08-23T15:31:04+02:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/cache/HostLimitQueueTest.java
r16398 r16913 37 37 */ 38 38 static class Task extends JCSCachedTileLoaderJob<String, CacheEntry> { 39 private URL url;40 private AtomicInteger counter;39 private final URL url; 40 private final AtomicInteger counter; 41 41 42 42 Task(ICacheAccess<String, CacheEntry> cache, URL url, AtomicInteger counter) { -
trunk/test/unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java
r16398 r16913 44 44 45 45 private static class TestCachedTileLoaderJob extends JCSCachedTileLoaderJob<String, CacheEntry> { 46 private String url;47 private String key;46 private final String url; 47 private final String key; 48 48 49 49 TestCachedTileLoaderJob(String url, String key) { -
trunk/test/unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java
r16398 r16913 66 66 67 67 private static class TestCachedTileLoaderJob extends TMSCachedTileLoaderJob { 68 private String url;69 private String key;68 private final String url; 69 private final String key; 70 70 71 71 TestCachedTileLoaderJob(TileLoaderListener listener, Tile tile, String key) throws IOException { -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r14138 r16913 53 53 public WireMockRule tileServer = new WireMockRule(WireMockConfiguration.options().dynamicPort()); 54 54 55 private ImageryInfo testImageryTMS = new ImageryInfo("test imagery", "http://localhost", "tms", null, null);56 private ImageryInfo testImageryPSEUDO_MERCATOR = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-pseudo-mercator.xml");57 private ImageryInfo testImageryTOPO_PL = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-TOPO.xml");58 private ImageryInfo testImageryORTO_PL = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-ORTO.xml");59 private ImageryInfo testImageryWIEN = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-wien.xml");60 private ImageryInfo testImageryWALLONIE = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Wallonie.xml");61 private ImageryInfo testImageryOntario = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Ontario.xml");62 private ImageryInfo testImageryGeoAdminCh = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-GeoAdminCh.xml");63 private ImageryInfo testImagery12168 = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12168-WMTSCapabilities.xml");64 private ImageryInfo testLotsOfLayers = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-lots-of-layers.xml");65 private ImageryInfo testDuplicateTags = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12573-wmts-identifier.xml");66 private ImageryInfo testMissingStyleIdentifer = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12573-wmts-missing-style-identifier.xml");67 private ImageryInfo testMultipleTileMatrixForLayer = getImagery(TestUtils.getTestDataRoot() +55 private final ImageryInfo testImageryTMS = new ImageryInfo("test imagery", "http://localhost", "tms", null, null); 56 private final ImageryInfo testImageryPSEUDO_MERCATOR = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-pseudo-mercator.xml"); 57 private final ImageryInfo testImageryTOPO_PL = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-TOPO.xml"); 58 private final ImageryInfo testImageryORTO_PL = getImagery(TestUtils.getTestDataRoot() + "wmts/getcapabilities-ORTO.xml"); 59 private final ImageryInfo testImageryWIEN = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-wien.xml"); 60 private final ImageryInfo testImageryWALLONIE = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Wallonie.xml"); 61 private final ImageryInfo testImageryOntario = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-Ontario.xml"); 62 private final ImageryInfo testImageryGeoAdminCh = getImagery(TestUtils.getTestDataRoot() + "wmts/WMTSCapabilities-GeoAdminCh.xml"); 63 private final ImageryInfo testImagery12168 = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12168-WMTSCapabilities.xml"); 64 private final ImageryInfo testLotsOfLayers = getImagery(TestUtils.getTestDataRoot() + "wmts/getCapabilities-lots-of-layers.xml"); 65 private final ImageryInfo testDuplicateTags = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12573-wmts-identifier.xml"); 66 private final ImageryInfo testMissingStyleIdentifer = getImagery(TestUtils.getTestDataRoot() + "wmts/bug12573-wmts-missing-style-identifier.xml"); 67 private final ImageryInfo testMultipleTileMatrixForLayer = getImagery(TestUtils.getTestDataRoot() + 68 68 "wmts/bug13975-multiple-tile-matrices-for-one-layer-projection.xml"); 69 private ImageryInfo testImageryGisKtnGvAt = getImagery(TestUtils.getTestDataRoot() + "wmts/gis.ktn.gv.at.xml");69 private final ImageryInfo testImageryGisKtnGvAt = getImagery(TestUtils.getTestDataRoot() + "wmts/gis.ktn.gv.at.xml"); 70 70 71 71 private static ImageryInfo getImagery(String path) { -
trunk/test/unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java
r14120 r16913 33 33 } 34 34 35 private DataSet dataSet = new DataSet();35 private final DataSet dataSet = new DataSet(); 36 36 37 37 /** -
trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java
r13684 r16913 21 21 public class ProjectionTest { 22 22 23 private static Random rand = new SecureRandom();23 private static final Random rand = new SecureRandom(); 24 24 25 25 boolean error; -
trunk/test/unit/org/openstreetmap/josm/data/projection/SwissGridTest.java
r14138 r16913 19 19 public class SwissGridTest { 20 20 private static final String SWISS_EPSG_CODE = "EPSG:21781"; 21 private boolean debug = false;21 private final boolean debug = false; 22 22 23 23 /** -
trunk/test/unit/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModelTest.java
r14153 r16913 36 36 public class NodeListMergeModelTest { 37 37 38 private DatasetFactory my = new DatasetFactory();39 private DatasetFactory their = new DatasetFactory();38 private final DatasetFactory my = new DatasetFactory(); 39 private final DatasetFactory their = new DatasetFactory(); 40 40 41 41 /** -
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculatorTest.java
r16886 r16913 33 33 public class WayConnectionTypeCalculatorTest { 34 34 35 private RelationSorter sorter = new RelationSorter();36 private WayConnectionTypeCalculator wayConnectionTypeCalculator = new WayConnectionTypeCalculator();35 private final RelationSorter sorter = new RelationSorter(); 36 private final WayConnectionTypeCalculator wayConnectionTypeCalculator = new WayConnectionTypeCalculator(); 37 37 private DataSet testDataset; 38 38 -
trunk/test/unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java
r15508 r16913 46 46 public class PluginHandlerTestIT { 47 47 48 private static List<String> errorsToIgnore = new ArrayList<>();48 private static final List<String> errorsToIgnore = new ArrayList<>(); 49 49 /** 50 50 * Setup test. -
trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java
r16727 r16913 726 726 private static class FailOnTimeoutStatement extends Statement { 727 727 728 private int timeout;729 private Statement original;728 private final int timeout; 729 private final Statement original; 730 730 731 731 FailOnTimeoutStatement(Statement original, int timeout) { … … 760 760 private static final class TimeoutThread extends Thread { 761 761 public boolean isDone; 762 private Statement original;762 private final Statement original; 763 763 private Throwable exceptionCaught; 764 764
Note:
See TracChangeset
for help on using the changeset viewer.