Ignore:
Timestamp:
2015-10-11T17:28:19+02:00 (11 years ago)
Author:
Don-vip
Message:

improve/cleanup unit tests

Location:
trunk/test/unit/org/openstreetmap/josm/data/imagery
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/TemplatedWMSTileSourceTest.java

    r8770 r8857  
    2020import org.openstreetmap.josm.data.projection.Projections;
    2121
     22/**
     23 * Unit tests for class {@link TemplatedWMSTileSource}.
     24 */
    2225public class TemplatedWMSTileSourceTest {
    2326
    2427    private ImageryInfo testImageryWMS =  new ImageryInfo("test imagery", "http://localhost", "wms", null, null);
    2528    private ImageryInfo testImageryTMS =  new ImageryInfo("test imagery", "http://localhost", "tms", null, null);
    26     //private TileSource testSource = new TemplatedWMSTileSource(testImageryWMS);
     29
    2730    /**
    2831     * Setup test.
    … …  
    5255        verifyLocation(source, new LatLon(53.5937132, 19.5652017));
    5356        verifyLocation(source, new LatLon(53.501565692302854, 18.54455233898721));
    54 
    5557    }
    5658
    … …  
    107109        verifyLocation(source, new LatLon(60, 18), 3);
    108110        verifyLocation(source, new LatLon(60, 18));
    109 
    110111    }
    111112
    … …  
    120121        verifyLocation(source, new LatLon(60, 18.1), 3);
    121122        verifyLocation(source, new LatLon(60, 18.1));
    122 
    123123    }
    124124
    … …  
    129129        assertEquals(expected.getLat(), result.lat(), 1e-4);
    130130        assertEquals(expected.getLon(), result.lon(), 1e-4);
    131         //assertTrue("result: " + result.toDisplayString() + " osmMercator: " +  expected.toDisplayString(), result.equalsEpsilon(expected));
    132131        LatLon tileCenter = new Bounds(result, getTileLatLon(source, x+1, y+1, z)).getCenter();
    133132        TileXY backwardsResult = source.latLonToTileXY(tileCenter.toCoordinate(), z);
  • trunk/test/unit/org/openstreetmap/josm/data/imagery/WMTSTileSourceTest.java

    r8855 r8857  
    1818import org.openstreetmap.josm.data.projection.Projections;
    1919
     20/**
     21 * Unit tests for class {@link WMTSTileSource}.
     22 */
    2023public class WMTSTileSourceTest {
    2124
    … …  
    2831    private ImageryInfo testImageryOntario = getImagery("test/data/wmts/WMTSCapabilities-Ontario.xml");
    2932
     33    /**
     34     * Setup test.
     35     */
    3036    @BeforeClass
    3137    public static void setUp() {
Note: See TracChangeset for help on using the changeset viewer.