CalvalusProcessor implements WpsProcess { @Override public String getDefaultParameters() { return processorDescriptor.getDefaultParameters(); } CalvalusProcessor(BundleDescriptor bundleDescriptor, ProcessorDescriptor processorDescriptor); @Override String getIdentifier(); @Override String getTitle(); @Override String getAbstractText(); @Override String getVersion(); @Override boolean isLocal(); @Override ParameterDescriptor[] getParameterDescriptors(); Map<String,String> getJobConfiguration(); @Override String getDefaultParameters(); @Override String[] getPossibleOutputFormats(); String getDefaultCalvalusBundle(); String getDefaultSnapBundle(); String getBundleName(); String getBundleLocation(); String getBundleVersion(); String getName(); String[] getInputProductTypes(); static final String DELIMITER; }
@Test public void canGetDefaultParameters() throws Exception { when(mockProcessorDescriptor.getDefaultParameters()).thenReturn(getSampleProcessorParameterTxt()); calvalusProcessor = new CalvalusProcessor(mockBundleDescriptor, mockProcessorDescriptor); assertThat(calvalusProcessor.getDefaultParameters(), 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 ######\nL1_FORMAT SEAWIFS\n" + "# output format: HDF, NETCDF, NETCDF_CLASSIC\n")); }