Changeset 8530 in josm for trunk/test/unit
- Timestamp:
- 2015-06-25T00:05:23+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java
r8526 r8530 77 77 } 78 78 79 80 79 private void verifyMercatorTile(TemplatedWMSTileSource source, int x, int y, int z) { 81 80 TemplatedTMSTileSource verifier = new TemplatedTMSTileSource(testImageryTMS); … … 97 96 getTileLatLon(source, tileIndex.getXIndex() + 1, tileIndex.getYIndex() + 1, z) 98 97 ); 99 assertTrue(location.toDisplayString() + " not within " + bbox.toString() + " for tile " + z + "/" + tileIndex.getXIndex() + "/" + tileIndex.getYIndex(), 98 assertTrue(location.toDisplayString() + " not within " + bbox.toString() + 99 " for tile " + z + "/" + tileIndex.getXIndex() + "/" + tileIndex.getYIndex(), 100 100 bbox.bounds(location)); 101 101 } … … 109 109 return new LatLon(source.tileXYToLatLon(new Tile(source, x, y, z))); 110 110 } 111 111 112 private void verifyTileSquarness(TemplatedWMSTileSource source, int x, int y, int z) { 112 113 Projection proj = Main.getProjection(); … … 116 117 double x_size = Math.abs(min.getX() - max.getX()); 117 118 assertEquals(x_size, y_size, 1e-05); 118 119 119 } 120 121 122 120 123 121 private TemplatedWMSTileSource getSource() {
Note:
See TracChangeset
for help on using the changeset viewer.