@Test void testDeleteFile() { String fileId = "MyFileId"; filesApiServiceImpl.delete(fileId); verify(dataService).deleteById("sys_FileMeta", fileId); }
@Override public void delete(String fileId) { dataService.deleteById(FILE_META, fileId); }
FilesServiceImpl implements FilesService { @Override public void delete(String fileId) { dataService.deleteById(FILE_META, fileId); } }
FilesServiceImpl implements FilesService { @Override public void delete(String fileId) { dataService.deleteById(FILE_META, fileId); } FilesServiceImpl(DataService dataService, BlobStore blobStore, FileMetaFactory fileMetaFactory); }
FilesServiceImpl implements FilesService { @Override public void delete(String fileId) { dataService.deleteById(FILE_META, fileId); } FilesServiceImpl(DataService dataService, BlobStore blobStore, FileMetaFactory fileMetaFactory); @Transactional(readOnly = true) @Override FileMeta getFileMeta(String fileId); @Override void delete(String fileId); @Transactional @Override CompletableFuture<FileMeta> upload(HttpServletRequest httpServletRequest); @Transactional(readOnly = true) @Override ResponseEntity<StreamingResponseBody> download(String fileId); }
FilesServiceImpl implements FilesService { @Override public void delete(String fileId) { dataService.deleteById(FILE_META, fileId); } FilesServiceImpl(DataService dataService, BlobStore blobStore, FileMetaFactory fileMetaFactory); @Transactional(readOnly = true) @Override FileMeta getFileMeta(String fileId); @Override void delete(String fileId); @Transactional @Override CompletableFuture<FileMeta> upload(HttpServletRequest httpServletRequest); @Transactional(readOnly = true) @Override ResponseEntity<StreamingResponseBody> download(String fileId);  }