ScanJobControllerTest

14

tests

0

failures

0

ignored

0.478s

duration

100%

successful

Tests

Test Duration Result
should create job() 0.069s passed
should delete job() 0.005s passed
should get job by id() 0.025s passed
should get job executions() 0.013s passed
should get job statistics() 0.148s passed
should list jobs with filters() 0.090s passed
should return 404 when deleting non-existent job() 0.003s passed
should return 404 when getting statistics for non-existent job() 0.003s passed
should return 404 when job not found() 0.008s passed
should return 404 when updating non-existent job() 0.051s passed
should trigger scan without force parameter() 0.017s passed
should trigger scan() 0.023s passed
should update job() 0.004s passed
should validate create job request() 0.019s passed

Standard output

2026-04-07 15:05:17 - o.s.t.c.s.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.quantumsoft.tia.scanner.controllers.ScanJobControllerTest]: ScanJobControllerTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
2026-04-07 15:05:17 - o.s.b.t.c.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.quantumsoft.tia.scanner.FileScannerApplication for test class com.quantumsoft.tia.scanner.controllers.ScanJobControllerTest

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/

 :: Spring Boot ::                (v3.3.5)

2026-04-07 15:05:17 - 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:17 - c.q.t.s.c.ScanJobControllerTest - Starting ScanJobControllerTest 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:17 - c.q.t.s.c.ScanJobControllerTest - Running with Spring Boot v3.3.5, Spring v6.1.14
2026-04-07 15:05:17 - c.q.t.s.c.ScanJobControllerTest - No active profile set, falling back to 1 default profile: "default"
2026-04-07 15:05:18 - o.s.b.t.m.w.SpringBootMockServletContext - Initializing Spring TestDispatcherServlet ''
2026-04-07 15:05:18 - o.s.t.w.s.TestDispatcherServlet - Initializing Servlet ''
2026-04-07 15:05:18 - o.s.t.w.s.TestDispatcherServlet - Completed initialization in 3 ms
2026-04-07 15:05:18 - c.q.t.s.c.ScanJobControllerTest - Started ScanJobControllerTest in 1.272 seconds (process running for 27.578)
2026-04-07 15:05:18 - 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:18 - o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: [no message for java.lang.UnsupportedOperationException]]
2026-04-07 15:05:18 - o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Instantiation of [simple type, class com.quantumsoft.tia.scanner.dto.CreateScanJobRequest] value failed for JSON property scanInterval due to missing (therefore NULL) value for creator parameter scanInterval which is a non-nullable type]
2026-04-07 15:05:18 - 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:18 - o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolved [org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: [no message for java.lang.UnsupportedOperationException]]