test: fix all compilation errors and achieve coverage

This commit is contained in:
2026-05-17 09:29:31 +07:00
parent 1e709c51d3
commit 2617ccacb2
13 changed files with 58 additions and 20 deletions
@@ -31,8 +31,8 @@ public class GlobalExceptionHandler {
@ExceptionHandler(RuntimeException.class)
public ResponseEntity<ApiResponse<Object>> handleRuntime(RuntimeException ex) {
return ResponseEntity.status(HttpStatus.UNAUTHORIZED)
.body(ApiResponse.error("AUTH_ERROR", ex.getMessage()));
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR)
.body(ApiResponse.error("INTERNAL_ERROR", ex.getMessage()));
}
@ExceptionHandler(Exception.class)