Changeset 8857 in josm for trunk/test/unit/org/openstreetmap/josm/data/imagery
- Timestamp:
- 2015-10-11T17:28:19+02:00 (11 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/imagery
- Files:
-
- 2 edited
-
TemplatedWMSTileSourceTest.java (modified) (5 diffs)
-
WMTSTileSourceTest.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java
r8770 r8857 20 20 import org.openstreetmap.josm.data.projection.Projections; 21 21 22 /** 23 * Unit tests for class {@link TemplatedWMSTileSource}. 24 */ 22 25 public class TemplatedWMSTileSourceTest { 23 26 24 27 private ImageryInfo testImageryWMS = new ImageryInfo("test imagery", "http://localhost", "wms", null, null); 25 28 private ImageryInfo testImageryTMS = new ImageryInfo("test imagery", "http://localhost", "tms", null, null); 26 //private TileSource testSource = new TemplatedWMSTileSource(testImageryWMS); 29 27 30 /** 28 31 * Setup test. … … 52 55 verifyLocation(source, new LatLon(53.5937132, 19.5652017)); 53 56 verifyLocation(source, new LatLon(53.501565692302854, 18.54455233898721)); 54 55 57 } 56 58 … … 107 109 verifyLocation(source, new LatLon(60, 18), 3); 108 110 verifyLocation(source, new LatLon(60, 18)); 109 110 111 } 111 112 … … 120 121 verifyLocation(source, new LatLon(60, 18.1), 3); 121 122 verifyLocation(source, new LatLon(60, 18.1)); 122 123 123 } 124 124 … … 129 129 assertEquals(expected.getLat(), result.lat(), 1e-4); 130 130 assertEquals(expected.getLon(), result.lon(), 1e-4); 131 //assertTrue("result: " + result.toDisplayString() + " osmMercator: " + expected.toDisplayString(), result.equalsEpsilon(expected));132 131 LatLon tileCenter = new Bounds(result, getTileLatLon(source, x+1, y+1, z)).getCenter(); 133 132 TileXY backwardsResult = source.latLonToTileXY(tileCenter.toCoordinate(), z); -
trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java
r8855 r8857 18 18 import org.openstreetmap.josm.data.projection.Projections; 19 19 20 /** 21 * Unit tests for class {@link WMTSTileSource}. 22 */ 20 23 public class WMTSTileSourceTest { 21 24 … … 28 31 private ImageryInfo testImageryOntario = getImagery("test/data/wmts/WMTSCapabilities-Ontario.xml"); 29 32 33 /** 34 * Setup test. 35 */ 30 36 @BeforeClass 31 37 public static void setUp() {
Note:
See TracChangeset
for help on using the changeset viewer.
