CalvalusProcessor implements WpsProcess { @Override public String getTitle() { return title; } 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 canGetTitle() throws Exception { when(mockProcessorDescriptor.getProcessorName()).thenReturn("dummyProcessorName"); calvalusProcessor = new CalvalusProcessor(mockBundleDescriptor, mockProcessorDescriptor); assertThat(calvalusProcessor.getTitle(), equalTo("dummyProcessorName")); }