Commit af14d25e authored by Noel Alonso's avatar Noel Alonso
Browse files

Establece legend en base a urlSource calculado

parent 85cc2a55
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,8 @@ public class CapabilitiesTest {

		// 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");
	}

	// TODO: cambiar excepción
+2 −0
Original line number Diff line number Diff line
@@ -55,6 +55,8 @@ 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");
		layerInfo.setUrlSource(URL_CAPABILITIES);
	}