MetricsControllerTest

10

tests

0

failures

0

ignored

0.160s

duration

100%

successful

Tests

Test Duration Result
should calculate error rate with precision() 0.036s passed
should calculate queue success rate correctly() 0.004s passed
should expose standard actuator endpoints() 0.003s passed
should get current metrics() 0.004s passed
should get health status() 0.036s passed
should get metrics summary() 0.037s passed
should get prometheus metrics() 0.003s passed
should handle metrics when no files scanned() 0.004s passed
should include timestamp in metrics response() 0.004s passed
should reset metrics() 0.029s passed

Standard output

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

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

 :: Spring Boot ::                (v3.3.5)

2026-04-07 15:05:15 - 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:15 - c.q.t.s.c.MetricsControllerTest - Starting MetricsControllerTest 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:15 - c.q.t.s.c.MetricsControllerTest - Running with Spring Boot v3.3.5, Spring v6.1.14
2026-04-07 15:05:15 - c.q.t.s.c.MetricsControllerTest - No active profile set, falling back to 1 default profile: "default"
2026-04-07 15:05:17 - o.s.b.t.m.w.SpringBootMockServletContext - Initializing Spring TestDispatcherServlet ''
2026-04-07 15:05:17 - o.s.t.w.s.TestDispatcherServlet - Initializing Servlet ''
2026-04-07 15:05:17 - o.s.t.w.s.TestDispatcherServlet - Completed initialization in 0 ms
2026-04-07 15:05:17 - c.q.t.s.c.MetricsControllerTest - Started MetricsControllerTest in 1.34 seconds (process running for 26.067)