Commit 88f792c3 authored by Noel Alonso's avatar Noel Alonso
Browse files

Arregla tests por cambio de legend

parent 62ea8cb4
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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)
@@ -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());

+3 −4
Original line number Diff line number Diff line
@@ -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);
	}

+1 −1
Original line number Diff line number Diff line
@@ -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": [
			[
+1 −1
Original line number Diff line number Diff line
@@ -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": [
			[
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
		"id": "category-213423",
		"name": "Batimetrías"
	},
	"legend": "http://externallegend.com",
	"relatedActivities": [
		{
			"activity": {