@SuppressWarnings("unchecked") @Test void testDeleteAll() { FileMeta fileMeta0 = getMockFileMeta("id0"); FileMeta fileMeta1 = getMockFileMeta("id1"); when(delegateRepository.findAll(any(Query.class))).thenReturn(Stream.of(fileMeta0, fileMeta1)); fileMetaRepositoryDecorator.deleteAll(); verify(delegateRepository).deleteAll(); verify(fileStore).delete("id0"); verify(fileStore).delete("id1"); }
@Override public void deleteAll() { query().findAll().forEach(this::deleteFile); super.deleteAll(); }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteAll() { query().findAll().forEach(this::deleteFile); super.deleteAll(); } }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteAll() { query().findAll().forEach(this::deleteFile); super.deleteAll(); } FileMetaRepositoryDecorator(
      Repository<FileMeta> delegateRepository, FileStore fileStore, BlobStore blobStore); }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteAll() { query().findAll().forEach(this::deleteFile); super.deleteAll(); } FileMetaRepositoryDecorator(
      Repository<FileMeta> delegateRepository, FileStore fileStore, BlobStore blobStore); @Override void delete(FileMeta fileMeta); @Override void deleteById(Object id); @Override void deleteAll(); @Override void delete(Stream<FileMeta> fileMetaStream); @Override void deleteAll(Stream<Object> ids); }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteAll() { query().findAll().forEach(this::deleteFile); super.deleteAll(); } FileMetaRepositoryDecorator(
      Repository<FileMeta> delegateRepository, FileStore fileStore, BlobStore blobStore); @Override void delete(FileMeta fileMeta); @Override void deleteById(Object id); @Override void deleteAll(); @Override void delete(Stream<FileMeta> fileMetaStream); @Override void deleteAll(Stream<Object> ids);  }