Changeset 10221 in josm for trunk/test
- Timestamp:
- 2016-05-15T19:56:21+02:00 (9 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/imagery
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/ImageryInfoTest.java
r9756 r10221 67 67 assertEquals(info.noTileHeaders, expect); 68 68 final Set<String> eTag = info.noTileHeaders.get("ETag"); 69 assertEquals(eTag, new HashSet< String>(Arrays.asList("foo", "bar")));69 assertEquals(eTag, new HashSet<>(Arrays.asList("foo", "bar"))); 70 70 } 71 71 -
trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java
r9767 r10221 16 16 import org.openstreetmap.josm.data.coor.LatLon; 17 17 import org.openstreetmap.josm.data.projection.CustomProjection; 18 import org.openstreetmap.josm.data.projection.Projection;19 18 import org.openstreetmap.josm.data.projection.Projections; 20 19 … … 35 34 } 36 35 36 /** 37 * Test EPSG:3857 38 */ 37 39 @Test 38 40 public void testEPSG3857() { … … 56 58 } 57 59 60 /** 61 * Test EPSG:4326 62 */ 58 63 @Test 59 64 public void testEPSG4326() { … … 68 73 } 69 74 75 /** 76 * Test EPSG:4326 - wide bounds 77 */ 70 78 @Test 71 79 public void testEPSG4326_widebounds() { … … 77 85 } 78 86 87 /** 88 * Test EPSG:4326 - narrow bounds 89 */ 79 90 @Test 80 91 public void testEPSG4326_narrowbounds() { … … 86 97 } 87 98 99 /** 100 * Test EPSG:2180 101 */ 88 102 @Test 89 103 public void testEPSG2180() { … … 99 113 } 100 114 115 /** 116 * Test EPSG:3006 with bounds 117 */ 101 118 @Test 102 119 public void testEPSG3006_withbounds() { … … 111 128 } 112 129 130 /** 131 * Test EPSG:3006 without bounds 132 */ 113 133 @Test 114 134 public void testEPSG3006_withoutbounds() { … … 188 208 189 209 private void verifyTileSquarness(TemplatedWMSTileSource source, int x, int y, int z) { 190 Projection proj = Main.getProjection();191 210 /** 192 211 * t1 | t2 … … 217 236 218 237 private TemplatedWMSTileSource getSource() { 219 TemplatedWMSTileSource source = new TemplatedWMSTileSource(testImageryWMS); 220 return source; 238 return new TemplatedWMSTileSource(testImageryWMS); 221 239 } 222 240 } -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r9973 r10221 58 58 59 59 @Test 60 public void testPseudoMercator() throws MalformedURLException,IOException {60 public void testPseudoMercator() throws IOException { 61 61 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 62 62 WMTSTileSource testSource = new WMTSTileSource(testImageryPSEUDO_MERCATOR); … … 88 88 89 89 @Test 90 public void testWALLONIE() throws MalformedURLException,IOException {90 public void testWALLONIE() throws IOException { 91 91 Main.setProjection(Projections.getProjectionByCode("EPSG:31370")); 92 92 WMTSTileSource testSource = new WMTSTileSource(testImageryWALLONIE); … … 108 108 @Test 109 109 @Ignore("disable this test, needs further working") // XXX 110 public void testWALLONIENoMatrixDimension() throws MalformedURLException,IOException {110 public void testWALLONIENoMatrixDimension() throws IOException { 111 111 Main.setProjection(Projections.getProjectionByCode("EPSG:31370")); 112 112 WMTSTileSource testSource = new WMTSTileSource(getImagery("test/data/wmts/WMTSCapabilities-Wallonie-nomatrixdimension.xml")); … … 132 132 133 133 @Test 134 public void testWIEN() throws MalformedURLException,IOException {134 public void testWIEN() throws IOException { 135 135 Main.setProjection(Projections.getProjectionByCode("EPSG:3857")); 136 136 WMTSTileSource testSource = new WMTSTileSource(testImageryWIEN);
Note:
See TracChangeset
for help on using the changeset viewer.