@Test void testDeleteById() { FileMeta fileMeta = getMockFileMeta("id"); when(delegateRepository.findOneById("id")).thenReturn(fileMeta); fileMetaRepositoryDecorator.deleteById("id"); verify(delegateRepository).deleteById("id"); verify(fileStore).delete("id"); }
@Override public void deleteById(Object id) { deleteFile(getFileMeta(id)); super.deleteById(id); }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteById(Object id) { deleteFile(getFileMeta(id)); super.deleteById(id); } }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteById(Object id) { deleteFile(getFileMeta(id)); super.deleteById(id); } FileMetaRepositoryDecorator(
      Repository<FileMeta> delegateRepository, FileStore fileStore, BlobStore blobStore); }
FileMetaRepositoryDecorator extends AbstractRepositoryDecorator<FileMeta> { @Override public void deleteById(Object id) { deleteFile(getFileMeta(id)); super.deleteById(id); } 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 deleteById(Object id) { deleteFile(getFileMeta(id)); super.deleteById(id); } 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);  }