@Test public void ProxyDocumentWithDDOCDocumentTypeShouldReturnDataFilesReport() throws Exception { when(applicationContext.getBean(DDOCDataFilesService.class.getSimpleName())).thenReturn(dataFilesServiceSpy); ProxyDocument proxyDocument = mockProxyDocumentWithDocument("filename.ddoc"); DataFilesReport report = dataFilesProxy.getDataFiles(proxyDocument); assertEquals(dataFilesServiceSpy.dataFilesReport, report); }
public DataFilesReport getDataFiles(ProxyDocument proxyDocument) { return getServiceForType(extractDocumentType(proxyDocument.getName())).getDataFiles(createDataFilesDocument(proxyDocument)); }
DataFilesProxy { public DataFilesReport getDataFiles(ProxyDocument proxyDocument) { return getServiceForType(extractDocumentType(proxyDocument.getName())).getDataFiles(createDataFilesDocument(proxyDocument)); } }
DataFilesProxy { public DataFilesReport getDataFiles(ProxyDocument proxyDocument) { return getServiceForType(extractDocumentType(proxyDocument.getName())).getDataFiles(createDataFilesDocument(proxyDocument)); }  }
DataFilesProxy { public DataFilesReport getDataFiles(ProxyDocument proxyDocument) { return getServiceForType(extractDocumentType(proxyDocument.getName())).getDataFiles(createDataFilesDocument(proxyDocument)); }  DataFilesReport getDataFiles(ProxyDocument proxyDocument); @Autowired void setApplicationContext(ApplicationContext applicationContext); }
DataFilesProxy { public DataFilesReport getDataFiles(ProxyDocument proxyDocument) { return getServiceForType(extractDocumentType(proxyDocument.getName())).getDataFiles(createDataFilesDocument(proxyDocument)); }  DataFilesReport getDataFiles(ProxyDocument proxyDocument); @Autowired void setApplicationContext(ApplicationContext applicationContext);  }