@Test public void canGetDefaultProcessorParametersWhenNotProvided() throws Exception { Map<String, String> mockInputMapRaw = getNoProcessorParametersRawMap(); when(mockExecuteRequestExtractor.getInputParametersMapRaw()).thenReturn(mockInputMapRaw); ParameterDescriptor[] mockParameterDescriptors = getMockParameterDescriptorArray(); when(mockCalvalusProcessor.getParameterDescriptors()).thenReturn(mockParameterDescriptors); CalvalusFacade mockCalvalusFacade = getMockCalvalusFacade(); calvalusDataInputs = new CalvalusDataInputs(mockExecuteRequestExtractor, mockCalvalusProcessor, productSets, mockCalvalusFacade); assertThat(calvalusDataInputs.getValue("processorParameters"), equalTo("<parameters>\n" + "<doSmileCorrection>false</doSmileCorrection>\n" + "</parameters>")); }
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; }