@Test public void canGetParameterMap() throws Exception { String executeRequestString = getExecuteRequestString(); InputStream requestInputStream = new ByteArrayInputStream(executeRequestString.getBytes()); Execute execute = (Execute) JaxbHelper.unmarshal(requestInputStream, new ObjectFactory()); requestExtractor = new ExecuteRequestExtractor(execute); Map<String, String> parameterMap = requestExtractor.getInputParametersMapRaw(); assertThat(parameterMap.get("doAtmosphericCorrection"), equalTo("true")); assertThat(parameterMap.get("outputTosa"), equalTo("false")); assertThat(parameterMap.get("outputTransmittance"), equalTo("false")); assertThat(parameterMap.get("calvalus.l3.parameters"), equalTo("<parameters>\n" + "<planetaryGrid>org.esa.beam.binning.support.PlateCarreeGrid</planetaryGrid>\n" + "<numRows>21600</numRows>\n" + "<compositingType>MOSAICKING</compositingType>\n" + "<superSampling>1</superSampling>\n" + "<maskExpr>!case2_flags.INVALID</maskExpr>\n" + "<aggregators>\n" + "<aggregator>\n" + "<type>AVG</type>\n" + "<varName>tsm</varName>\n" + "</aggregator>\n" + "<aggregator>\n" + "<type>MIN_MAX</type>\n" + "<varName>chl_conc</varName>\n" + "</aggregator>\n" + "<aggregator>\n" + "<type>AVG</type>\n" + "<varName>Z90_max</varName>\n" + "</aggregator>\n" + "</aggregators>\n" + "</parameters>")); }
public Map<String, String> getInputParametersMapRaw() { return inputParametersMapRaw; }
ExecuteRequestExtractor { public Map<String, String> getInputParametersMapRaw() { return inputParametersMapRaw; } }
ExecuteRequestExtractor { public Map<String, String> getInputParametersMapRaw() { return inputParametersMapRaw; } ExecuteRequestExtractor(Execute execute); }
ExecuteRequestExtractor { public Map<String, String> getInputParametersMapRaw() { return inputParametersMapRaw; } ExecuteRequestExtractor(Execute execute); Map<String, String> getInputParametersMapRaw(); String getValue(String parameterName); }
ExecuteRequestExtractor { public Map<String, String> getInputParametersMapRaw() { return inputParametersMapRaw; } ExecuteRequestExtractor(Execute execute); Map<String, String> getInputParametersMapRaw(); String getValue(String parameterName);  }