@Test public void testGetProcessors() throws Exception { whenNew(CalvalusProcessorExtractor.class).withNoArguments().thenReturn(mockCalvalusProcessorExtractor); ArgumentCaptor<String> userNameCaptor = ArgumentCaptor.forClass(String.class); calvalusFacade = new CalvalusFacade(mockRequestContext); calvalusFacade.getProcessors(); verify(mockCalvalusProcessorExtractor).getProcessors(userNameCaptor.capture()); assertThat(userNameCaptor.getValue(), equalTo("mockUserName")); }
@Override public List<WpsProcess> getProcessors() throws WpsProcessorNotFoundException { return calvalusProcessorExtractor.getProcessors(remoteUserName); }
CalvalusFacade extends ProcessFacade { @Override public List<WpsProcess> getProcessors() throws WpsProcessorNotFoundException { return calvalusProcessorExtractor.getProcessors(remoteUserName); } }
CalvalusFacade extends ProcessFacade { @Override public List<WpsProcess> getProcessors() throws WpsProcessorNotFoundException { return calvalusProcessorExtractor.getProcessors(remoteUserName); } CalvalusFacade(WpsRequestContext wpsRequestContext); }
CalvalusFacade extends ProcessFacade { @Override public List<WpsProcess> getProcessors() throws WpsProcessorNotFoundException { return calvalusProcessorExtractor.getProcessors(remoteUserName); } CalvalusFacade(WpsRequestContext wpsRequestContext); @Override LocalProductionStatus orderProductionAsynchronous(Execute executeRequest); @Override LocalProductionStatus orderProductionSynchronous(Execute executeRequest); @Override List<String> getProductResultUrls(String jobId); @Override void stageProduction(String jobId); @Override void observeStagingStatus(String jobId); @Override void generateProductMetadata(String jobId); @Override List<WpsProcess> getProcessors(); @Override WpsProcess getProcessor(ProcessorNameConverter parser); ProductSet[] getProductSets(); Production getProduction(String jobId); String[] getRegionFiles(); String[][] loadRegionDataInfo(String url); }
CalvalusFacade extends ProcessFacade { @Override public List<WpsProcess> getProcessors() throws WpsProcessorNotFoundException { return calvalusProcessorExtractor.getProcessors(remoteUserName); } CalvalusFacade(WpsRequestContext wpsRequestContext); @Override LocalProductionStatus orderProductionAsynchronous(Execute executeRequest); @Override LocalProductionStatus orderProductionSynchronous(Execute executeRequest); @Override List<String> getProductResultUrls(String jobId); @Override void stageProduction(String jobId); @Override void observeStagingStatus(String jobId); @Override void generateProductMetadata(String jobId); @Override List<WpsProcess> getProcessors(); @Override WpsProcess getProcessor(ProcessorNameConverter parser); ProductSet[] getProductSets(); Production getProduction(String jobId); String[] getRegionFiles(); String[][] loadRegionDataInfo(String url);  }