FileStatusControllerTest
Tests
| Test |
Duration |
Result |
| should cleanup old files() |
0.069s |
passed |
| should delete file successfully() |
0.248s |
passed |
| should get file by id() |
0.012s |
passed |
| should get statistics for all files() |
0.366s |
passed |
| should get statistics for specific job() |
0.005s |
passed |
| should query files with filters() |
0.400s |
passed |
| should retry file successfully() |
0.073s |
passed |
| should return 404 when deleting non-existent file() |
0.014s |
passed |
| should return 404 when file not found() |
0.003s |
passed |
| should return 404 when retrying non-existent file() |
0.023s |
passed |
| should return 409 when delete fails due to state conflict() |
0.018s |
passed |
| should return 409 when retry fails due to state conflict() |
0.005s |
passed |
| should validate cleanup request() |
0.238s |
passed |
Standard output
15:05:07.325 [Test worker] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [com.quantumsoft.tia.scanner.controllers.FileStatusControllerTest]: FileStatusControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
15:05:07.640 [Test worker] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration com.quantumsoft.tia.scanner.FileScannerApplication for test class com.quantumsoft.tia.scanner.controllers.FileStatusControllerTest
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.5)
2026-04-07 15:05:08 - o.s.b.t.j.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer -
Found multiple occurrences of org.json.JSONObject on the class path:
jar:file:/home/sts/.gradle/caches/modules-2/files-2.1/org.json/json/20231013/e22e0c040fe16f04ffdb85d851d77b07fc05ea52/json-20231013.jar!/org/json/JSONObject.class
jar:file:/home/sts/.gradle/caches/modules-2/files-2.1/com.vaadin.external.google/android-json/0.0.20131108.vaadin1/fa26d351fe62a6a17f5cda1287c1c6110dec413f/android-json-0.0.20131108.vaadin1.jar!/org/json/JSONObject.class
You may wish to exclude one of them to ensure predictable runtime behavior
2026-04-07 15:05:08 - c.q.t.s.c.FileStatusControllerTest - Starting FileStatusControllerTest using Java 21.0.4 with PID 16107 (started by sts in /home/sts/Downloads/Enterprise-ETL-Engine/services/file-scanner)
2026-04-07 15:05:08 - c.q.t.s.c.FileStatusControllerTest - Running with Spring Boot v3.3.5, Spring v6.1.14
2026-04-07 15:05:08 - c.q.t.s.c.FileStatusControllerTest - No active profile set, falling back to 1 default profile: "default"
2026-04-07 15:05:13 - o.s.b.t.m.w.SpringBootMockServletContext - Initializing Spring TestDispatcherServlet ''
2026-04-07 15:05:13 - o.s.t.w.s.TestDispatcherServlet - Initializing Servlet ''
2026-04-07 15:05:13 - o.s.t.w.s.TestDispatcherServlet - Completed initialization in 0 ms
2026-04-07 15:05:14 - c.q.t.s.c.FileStatusControllerTest - Started FileStatusControllerTest in 6.278 seconds (process running for 23.095)
2026-04-07 15:05:14 - o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.bind.MethodArgumentNotValidException: Validation failed for argument [0] in public org.springframework.http.ResponseEntity<com.quantumsoft.tia.scanner.dto.files.CleanupResultDto> com.quantumsoft.tia.scanner.controllers.files.FileStatisticsController.cleanupOldFiles(com.quantumsoft.tia.scanner.dto.files.CleanupRequest): [Field error in object 'cleanupRequest' on field 'daysToKeep': rejected value [0]; codes [Min.cleanupRequest.daysToKeep,Min.daysToKeep,Min.int,Min]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [cleanupRequest.daysToKeep,daysToKeep]; arguments []; default message [daysToKeep],1]; default message [Days to keep must be at least 1]] ]
2026-04-07 15:05:15 - o.s.w.s.m.s.DefaultHandlerExceptionResolver - Ignoring exception, response committed already: org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: [no message for java.lang.UnsupportedOperationException]
2026-04-07 15:05:15 - o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: [no message for java.lang.UnsupportedOperationException]]