@Test public void testStorageFileNotFoundException() { assertEquals(HttpStatus.NOT_FOUND, testFileUploadController .handleStorageFileNotFound(new StorageFileNotFoundException("testException123")).getStatusCode()); }
@ExceptionHandler(StorageFileNotFoundException.class) public ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc) { return ResponseEntity.notFound().build(); }
FileUploadController { @ExceptionHandler(StorageFileNotFoundException.class) public ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc) { return ResponseEntity.notFound().build(); } }
FileUploadController { @ExceptionHandler(StorageFileNotFoundException.class) public ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc) { return ResponseEntity.notFound().build(); } @Autowired  FileUploadController(
   		StorageService storageService, OdeProperties odeProperties,
         SimpMessagingTemplate template); }
FileUploadController { @ExceptionHandler(StorageFileNotFoundException.class) public ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc) { return ResponseEntity.notFound().build(); } @Autowired  FileUploadController(
   		StorageService storageService, OdeProperties odeProperties,
         SimpMessagingTemplate template); @PostMapping("/upload/{type}") ResponseEntity<String> handleFileUpload(@RequestParam("file") MultipartFile file, @PathVariable("type") String type); @ExceptionHandler(StorageFileNotFoundException.class) ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc); }
FileUploadController { @ExceptionHandler(StorageFileNotFoundException.class) public ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc) { return ResponseEntity.notFound().build(); } @Autowired  FileUploadController(
   		StorageService storageService, OdeProperties odeProperties,
         SimpMessagingTemplate template); @PostMapping("/upload/{type}") ResponseEntity<String> handleFileUpload(@RequestParam("file") MultipartFile file, @PathVariable("type") String type); @ExceptionHandler(StorageFileNotFoundException.class) ResponseEntity<Void> handleStorageFileNotFound(StorageFileNotFoundException exc);  }