@Test void deleteBySpaceAndNamespaceTest() throws Exception { super.deleteBySpaceAndNamespaceTest(); Mockito.verify(fileStorage) .deleteFilesBySpaceAndNamespace(Mockito.eq(SPACE_1), Mockito.eq(NAMESPACE_1)); }
public int deleteBySpaceAndNamespace(String space, String namespace) throws FileStorageException { fileStorage.deleteFilesBySpaceAndNamespace(space, namespace); return deleteFileAttributesBySpaceAndNamespace(space, namespace); }
FileService { public int deleteBySpaceAndNamespace(String space, String namespace) throws FileStorageException { fileStorage.deleteFilesBySpaceAndNamespace(space, namespace); return deleteFileAttributesBySpaceAndNamespace(space, namespace); } }
FileService { public int deleteBySpaceAndNamespace(String space, String namespace) throws FileStorageException { fileStorage.deleteFilesBySpaceAndNamespace(space, namespace); return deleteFileAttributesBySpaceAndNamespace(space, namespace); } FileService(DataSourceWithDialect dataSourceWithDialect, FileStorage fileStorage);  FileService(String tableName, DataSourceWithDialect dataSourceWithDialect, FileStorage fileStorage); protected  FileService(DataSourceWithDialect dataSourceWithDialect, SqlFileQueryProvider sqlFileQueryProvider, FileStorage fileStorage); }
FileService { public int deleteBySpaceAndNamespace(String space, String namespace) throws FileStorageException { fileStorage.deleteFilesBySpaceAndNamespace(space, namespace); return deleteFileAttributesBySpaceAndNamespace(space, namespace); } FileService(DataSourceWithDialect dataSourceWithDialect, FileStorage fileStorage);  FileService(String tableName, DataSourceWithDialect dataSourceWithDialect, FileStorage fileStorage); protected  FileService(DataSourceWithDialect dataSourceWithDialect, SqlFileQueryProvider sqlFileQueryProvider, FileStorage fileStorage); FileEntry addFile(String space, String namespace, String name, InputStream inputStream); FileEntry addFile(String space, String namespace, String name, File existingFile); List<FileEntry> listFiles(String space, String namespace); FileEntry getFile(String space, String id); void consumeFileContent(String space, String id, FileContentConsumer fileContentConsumer); T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor); int deleteBySpaceAndNamespace(String space, String namespace); int deleteBySpace(String space); int deleteModifiedBefore(Date modificationTime); boolean deleteFile(String space, String id); int deleteFilesEntriesWithoutContent(); }
FileService { public int deleteBySpaceAndNamespace(String space, String namespace) throws FileStorageException { fileStorage.deleteFilesBySpaceAndNamespace(space, namespace); return deleteFileAttributesBySpaceAndNamespace(space, namespace); } FileService(DataSourceWithDialect dataSourceWithDialect, FileStorage fileStorage);  FileService(String tableName, DataSourceWithDialect dataSourceWithDialect, FileStorage fileStorage); protected  FileService(DataSourceWithDialect dataSourceWithDialect, SqlFileQueryProvider sqlFileQueryProvider, FileStorage fileStorage); FileEntry addFile(String space, String namespace, String name, InputStream inputStream); FileEntry addFile(String space, String namespace, String name, File existingFile); List<FileEntry> listFiles(String space, String namespace); FileEntry getFile(String space, String id); void consumeFileContent(String space, String id, FileContentConsumer fileContentConsumer); T processFileContent(String space, String id, FileContentProcessor<T> fileContentProcessor); int deleteBySpaceAndNamespace(String space, String namespace); int deleteBySpace(String space); int deleteModifiedBefore(Date modificationTime); boolean deleteFile(String space, String id); int deleteFilesEntriesWithoutContent();  }