@Test public void canGetPossibleOutputFormats() throws Exception { when(mockProcessorDescriptor.getOutputFormats()).thenReturn(new String[]{"NetCDF4", "GeoTIFF"}); calvalusProcessor = new CalvalusProcessor(mockBundleDescriptor, mockProcessorDescriptor); assertThat(calvalusProcessor.getPossibleOutputFormats().length, equalTo(2)); assertThat(calvalusProcessor.getPossibleOutputFormats()[0], equalTo("NetCDF4")); assertThat(calvalusProcessor.getPossibleOutputFormats()[1], equalTo("GeoTIFF")); }
@Override public String[] getPossibleOutputFormats() { return processorDescriptor.getOutputFormats(); }
CalvalusProcessor implements WpsProcess { @Override public String[] getPossibleOutputFormats() { return processorDescriptor.getOutputFormats(); } }
CalvalusProcessor implements WpsProcess { @Override public String[] getPossibleOutputFormats() { return processorDescriptor.getOutputFormats(); } CalvalusProcessor(BundleDescriptor bundleDescriptor, ProcessorDescriptor processorDescriptor); }
CalvalusProcessor implements WpsProcess { @Override public String[] getPossibleOutputFormats() { return processorDescriptor.getOutputFormats(); } 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(); }
CalvalusProcessor implements WpsProcess { @Override public String[] getPossibleOutputFormats() { return processorDescriptor.getOutputFormats(); } 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; }