Changeset 16913 in josm for trunk/test
- Timestamp:
- 2020-08-23T15:31:04+02:00 (5 years ago)
- Location:
- trunk/test
- Files:
-
- 18 edited
-
functional/org/openstreetmap/josm/data/imagery/ImageryCompareTestIT.java (modified) (1 diff)
-
functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java (modified) (1 diff)
-
functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java (modified) (1 diff)
-
performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java (modified) (1 diff)
-
performance/org/openstreetmap/josm/data/osm/OsmDataGenerator.java (modified) (1 diff)
-
performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java (modified) (1 diff)
-
performance/org/openstreetmap/josm/io/OsmReaderPerformanceTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/cache/HostLimitQueueTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJobTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJobTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/osm/OsmPrimitiveTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/projection/ProjectionTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/data/projection/SwissGridTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/gui/conflict/pair/nodes/NodeListMergeModelTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculatorTest.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/plugins/PluginHandlerTestIT.java (modified) (1 diff)
-
unit/org/openstreetmap/josm/testutils/JOSMTestRules.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/data/imagery/ImageryCompareTestIT.java
r16643 r16913 20 20 public class ImageryCompareTestIT { 21 21 22 private static String BLACK_PREFIX = "<pre style=\"margin:3px;color:black\">"; 23 private static String RED_PREFIX = "<pre style=\"margin:3px;color:red\">"; 22 private static final String BLACK_PREFIX = "<pre style=\"margin:3px;color:black\">"; 23 private static final String RED_PREFIX = "<pre style=\"margin:3px;color:red\">"; 24 24 25 25 /** -
trunk/test/functional/org/openstreetmap/josm/gui/mappaint/MapCSSRendererTest.java
r16235 r16913 68 68 public JOSMTestRules test = new JOSMTestRules().preferences().projection(); 69 69 70 private TestConfig testConfig; 70 private final TestConfig testConfig; 71 71 72 72 // development flag - set to true in order to update all reference images -
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r15717 r16913 52 52 @SuppressFBWarnings(value = "CRLF_INJECTION_LOGS") 53 53 public class MultiFetchServerObjectReaderTest { 54 private static Logger logger = Logger.getLogger(MultiFetchServerObjectReader.class.getName()); 54 private static final Logger logger = Logger.getLogger(MultiFetchServerObjectReader.class.getName()); 55 55 56 56 /** -
trunk/test/performance/org/openstreetmap/josm/data/osm/KeyValuePerformanceTest.java
r14201 r16913 34 34 private static final int STRING_INTERN_TESTS = 5000000; 35 35 private static final double[] TAG_NODE_RATIOS = new double[] {.05, .3, 3, 20, 200}; 36 private ArrayList<String> testStrings = new ArrayList<>(); 36 private final ArrayList<String> testStrings = new ArrayList<>(); 37 37 private Random random; 38 38 -
trunk/test/performance/org/openstreetmap/josm/data/osm/OsmDataGenerator.java
r16006 r16913 80 80 */ 81 81 public abstract static class DataGenerator { 82 private String datasetName; 82 private final String datasetName; 83 83 protected final Random random; 84 84 private DataSet ds; -
trunk/test/performance/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSourceFilterTest.java
r10674 r16913 25 25 private static class CssGenerator { 26 26 StringBuilder sb = new StringBuilder(); 27 private KeyValueDataGenerator generator; 27 private final KeyValueDataGenerator generator; 28 28 29 29 /** -
trunk/test/performance/org/openstreetmap/josm/io/OsmReaderPerformanceTest.java
r16006 r16913 31 31 public class OsmReaderPerformanceTest { 32 32 private static final int TIMES = 4; 33 private static String DATA_FILE = "nodist/data/neubrandenburg.osm.bz2"; 33 private static final String DATA_FILE = "nodist/data/neubrandenburg.osm.bz2"; 34 34 35 35 /** -
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.
