Skip to content

Commit

Permalink
Merge pull request #43 from eotin/Develop
Browse files Browse the repository at this point in the history
Add Test for Class WmtsLayer
  • Loading branch information
eotin authored Apr 3, 2019
2 parents 785bf20 + eaad1d8 commit 404c5d5
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,14 @@ public void testCapabilitiesContent() throws Exception {
Assert.assertEquals(layer.getMaximumZoom(),19);
Assert.assertEquals(layer.getMinimumZoom(),0);

Assert.assertNull(layer.getTemplateUrl(""));
String templateUrl = "https://tpwd.texas.gov/arcgis/rest/services/Vegetation_Mapping/Texas_Ecological_Mapping_Systems_Data/mapserver/WMTS/tile/1.0.0/Vegetation_Mapping_Texas_Ecological_Mapping_Systems_Data/default/default028mm/{z}/{y}/{x}.png";
Assert.assertEquals(templateUrl, layer.getTemplateUrl("tile"));

Assert.assertEquals(layer.getSelectedTileMatrixLinkIdentifier(),"default028mm");

// Tile Size
layer.setTilesSize(60);
Assert.assertEquals(layer.getTilesSize(), 60);
}
}

0 comments on commit 404c5d5

Please sign in to comment.