@Test public void canGetProcessorInfoParameters() throws Exception { Map<String, String> mockInputMapRaw = getMinimalRawMap(); when(mockExecuteRequestExtractor.getInputParametersMapRaw()).thenReturn(mockInputMapRaw); when(mockCalvalusProcessor.getBundleName()).thenReturn("beam-idepix"); when(mockCalvalusProcessor.getBundleVersion()).thenReturn("2.0.9"); when(mockCalvalusProcessor.getName()).thenReturn("Idepix.Water"); CalvalusFacade mockCalvalusFacade = getMockCalvalusFacade(); calvalusDataInputs = new CalvalusDataInputs(mockExecuteRequestExtractor, mockCalvalusProcessor, productSets, mockCalvalusFacade); assertThat(calvalusDataInputs.getValue("processorBundleName"), equalTo("beam-idepix")); assertThat(calvalusDataInputs.getValue("processorBundleVersion"), equalTo("2.0.9")); assertThat(calvalusDataInputs.getValue("processorName"), equalTo("Idepix.Water")); }
public String getValue(String parameterName) { return inputMapFormatted.get(parameterName); }
CalvalusDataInputs { public String getValue(String parameterName) { return inputMapFormatted.get(parameterName); } }
CalvalusDataInputs { public String getValue(String parameterName) { return inputMapFormatted.get(parameterName); } CalvalusDataInputs(ExecuteRequestExtractor executeRequestExtractor,
                       WpsProcess calvalusProcessor,
                       ProductSet[] productSets,
                       CalvalusFacade calvalusFacade); }
CalvalusDataInputs { public String getValue(String parameterName) { return inputMapFormatted.get(parameterName); } CalvalusDataInputs(ExecuteRequestExtractor executeRequestExtractor,
                       WpsProcess calvalusProcessor,
                       ProductSet[] productSets,
                       CalvalusFacade calvalusFacade); String getValue(String parameterName); @Override String toString(); }
CalvalusDataInputs { public String getValue(String parameterName) { return inputMapFormatted.get(parameterName); } CalvalusDataInputs(ExecuteRequestExtractor executeRequestExtractor,
                       WpsProcess calvalusProcessor,
                       ProductSet[] productSets,
                       CalvalusFacade calvalusFacade); String getValue(String parameterName); @Override String toString(); static final long MIN_DATE; static final long MAX_DATE; static SimpleDateFormat ISO_DATE_FORMAT; }