@Test public void toXmlWhenNoDataInputs() throws Exception { Map<String, String> productionParameters = new HashMap<>(); ProductionRequest productionRequest = new ProductionRequest("L2Plus", "userName", productionParameters); String requestXml = new WpsXmlRequestConverter(productionRequest).toXml(); assertThat(requestXml, equalTo("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\n" + "\n" + "<wps:Execute service=\"WPS\"\n" + " version=\"1.0.0\"\n" + " xmlns:wps=\"http: " xmlns:ows=\"http: " xmlns:xlink=\"http: " xmlns:xsi=\"http: " xsi:schemaLocation=\"http: " <wps:DataInputs/>\n" + "</wps:Execute>")); }
public String toXml() { return getXmlHeader() + getIdentifier(productionRequest.getProductionType()) + getDataInputs(productionRequest.getParameters()) + "</wps:Execute>"; }
WpsXmlRequestConverter { public String toXml() { return getXmlHeader() + getIdentifier(productionRequest.getProductionType()) + getDataInputs(productionRequest.getParameters()) + "</wps:Execute>"; } }
WpsXmlRequestConverter { public String toXml() { return getXmlHeader() + getIdentifier(productionRequest.getProductionType()) + getDataInputs(productionRequest.getParameters()) + "</wps:Execute>"; } WpsXmlRequestConverter(ProductionRequest productionRequest); }
WpsXmlRequestConverter { public String toXml() { return getXmlHeader() + getIdentifier(productionRequest.getProductionType()) + getDataInputs(productionRequest.getParameters()) + "</wps:Execute>"; } WpsXmlRequestConverter(ProductionRequest productionRequest); String toXml(); }
WpsXmlRequestConverter { public String toXml() { return getXmlHeader() + getIdentifier(productionRequest.getProductionType()) + getDataInputs(productionRequest.getParameters()) + "</wps:Execute>"; } WpsXmlRequestConverter(ProductionRequest productionRequest); String toXml();  }