@Test public void canGetDefaultProcessorParameters() throws Exception { Map<String, String> mockInputMapRaw = getMinimalRawMap(); when(mockExecuteRequestExtractor.getInputParametersMapRaw()).thenReturn(mockInputMapRaw); when(mockCalvalusProcessor.getDefaultParameters()).thenReturn(getMockDefaultParameters()); CalvalusFacade mockCalvalusFacade = getMockCalvalusFacade(); calvalusDataInputs = new CalvalusDataInputs(mockExecuteRequestExtractor, mockCalvalusProcessor, productSets, mockCalvalusFacade); assertThat(calvalusDataInputs.getValue("processorParameters"), equalTo("########################\n" + "# POLYMER COMMAND FILE #\n" + "########################\n" + "# NB: paths can be given as relative or absolute\n" + "# lines starting with character '#' are ignored\n" + "# INPUT/OUTPUT ######\n" + "L1_FORMAT MERIS\n" + "# output format: HDF, NETCDF, NETCDF_CLASSIC\n" + "OUTPUT_FORMAT NETCDF\n" + "# uncomments this to process only a subset of the rows in the L1 file\n" + "# PROCESS_ROWS 7700 9000\n" + "# NCEP and TOMS filenames\n" + "# if commented or missing, MERIS level1 ancillary data will be used\n" + "# ${ncep_toms}FILE_METEO $file_meteo\n" + "# ${ncep_toms}FILE_OZONE $file_oz\n" + "# possible values ERA_INTERIM or NCEP\n" + "AUXDATA NCEP\n" + "# BANDS DEFINITION #######\n" + "BANDS_CORR 412 443 490 510 560 620 665 754 779 865\n" + "BANDS_OC 412 443 490 510 560 620 665 754 779 865\n" + "BANDS_RW 412 443 490 510 560 620 665 754 779 865\n" + "BANDS_LUTS 412 443 490 510 560 620 665 681 709 754 760 779 865 885 900\n" + "BANDS_L1 412 443 490 510 560 620 665 681 709 754 760 779 865 885 900")); }
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; }