Loading atlas-commands/src/test/java/es/redmic/test/atlascommands/unit/aggregate/capabilities/CapabilitiesTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -61,10 +61,6 @@ public class CapabilitiesTest { layers = Capabilities.getCapabilities(URL_CAPABILITIES); expectedLayer = (LayerWMSDTO) JsonToBeanTestUtil.getBean("/data/layers/layer.json", LayerWMSDTO.class); // Establece urlSource dinámicamente (depende de donde se ejecute) expectedLayer.setLegend( URL_CAPABILITIES + "?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states"); } @Test(expected = URLException.class) Loading Loading @@ -100,7 +96,6 @@ public class CapabilitiesTest { assertEquals(expectedLayer.getGeometry(), layerDTO.getGeometry()); assertEquals(expectedLayer.getKeywords(), layerDTO.getKeywords()); assertEquals(expectedLayer.getLegend(), layerDTO.getLegend()); assertEquals(expectedLayer.getAttribution(), layerDTO.getAttribution()); assertEquals(expectedLayer.getQueryable(), layerDTO.getQueryable()); Loading atlas-commands/src/test/java/es/redmic/test/atlascommands/unit/aggregate/layerinfo/LayerInfoMapperTest.java +3 −4 Original line number Diff line number Diff line Loading @@ -56,8 +56,7 @@ public class LayerInfoMapperTest { // Establece urlSource dinámicamente (depende de donde se ejecute) expectedLayer.setUrlSource(URL_CAPABILITIES); expectedLayer.setLegend( URL_CAPABILITIES + "?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states"); expectedLayer.setLegend("http://externallegend.com"); layerInfo.setUrlSource(URL_CAPABILITIES); } Loading atlas-commands/src/test/resources/data/layers/layer.json +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ "image/tiff8", "text/html; subtype=openlayers" ], "legend": "file:/home/REDMIC/redmic_project/server/atlas/atlas-commands/src/test/resources/data/capabilities/wms.xml?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states", "legend": "http://externallegend.com", "geometry": { "coordinates": [ [ Loading atlas-commands/src/test/resources/data/layers/layerDTO.json +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ "image/tiff8", "text/html; subtype=openlayers" ], "legend": "file:/home/REDMIC/redmic_project/server/atlas/atlas-commands/src/test/resources/data/capabilities/wms.xml?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states", "legend": "http://externallegend.com", "geometry": { "coordinates": [ [ Loading atlas-commands/src/test/resources/data/layers/layerInfoDTO.json +1 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ "id": "category-213423", "name": "Batimetrías" }, "legend": "http://externallegend.com", "relatedActivities": [ { "activity": { Loading Loading
atlas-commands/src/test/java/es/redmic/test/atlascommands/unit/aggregate/capabilities/CapabilitiesTest.java +0 −5 Original line number Diff line number Diff line Loading @@ -61,10 +61,6 @@ public class CapabilitiesTest { layers = Capabilities.getCapabilities(URL_CAPABILITIES); expectedLayer = (LayerWMSDTO) JsonToBeanTestUtil.getBean("/data/layers/layer.json", LayerWMSDTO.class); // Establece urlSource dinámicamente (depende de donde se ejecute) expectedLayer.setLegend( URL_CAPABILITIES + "?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states"); } @Test(expected = URLException.class) Loading Loading @@ -100,7 +96,6 @@ public class CapabilitiesTest { assertEquals(expectedLayer.getGeometry(), layerDTO.getGeometry()); assertEquals(expectedLayer.getKeywords(), layerDTO.getKeywords()); assertEquals(expectedLayer.getLegend(), layerDTO.getLegend()); assertEquals(expectedLayer.getAttribution(), layerDTO.getAttribution()); assertEquals(expectedLayer.getQueryable(), layerDTO.getQueryable()); Loading
atlas-commands/src/test/java/es/redmic/test/atlascommands/unit/aggregate/layerinfo/LayerInfoMapperTest.java +3 −4 Original line number Diff line number Diff line Loading @@ -56,8 +56,7 @@ public class LayerInfoMapperTest { // Establece urlSource dinámicamente (depende de donde se ejecute) expectedLayer.setUrlSource(URL_CAPABILITIES); expectedLayer.setLegend( URL_CAPABILITIES + "?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states"); expectedLayer.setLegend("http://externallegend.com"); layerInfo.setUrlSource(URL_CAPABILITIES); } Loading
atlas-commands/src/test/resources/data/layers/layer.json +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ "image/tiff8", "text/html; subtype=openlayers" ], "legend": "file:/home/REDMIC/redmic_project/server/atlas/atlas-commands/src/test/resources/data/capabilities/wms.xml?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states", "legend": "http://externallegend.com", "geometry": { "coordinates": [ [ Loading
atlas-commands/src/test/resources/data/layers/layerDTO.json +1 −1 Original line number Diff line number Diff line Loading @@ -21,7 +21,7 @@ "image/tiff8", "text/html; subtype=openlayers" ], "legend": "file:/home/REDMIC/redmic_project/server/atlas/atlas-commands/src/test/resources/data/capabilities/wms.xml?request=GetLegendGraphic&version=1.0.0&format=image/png&layer=topp:states", "legend": "http://externallegend.com", "geometry": { "coordinates": [ [ Loading
atlas-commands/src/test/resources/data/layers/layerInfoDTO.json +1 −0 Original line number Diff line number Diff line Loading @@ -3,6 +3,7 @@ "id": "category-213423", "name": "Batimetrías" }, "legend": "http://externallegend.com", "relatedActivities": [ { "activity": { Loading