Class VirtualThreadExecutorMetricsTest
java.lang.Object
ubic.gemma.core.metrics.binder.VirtualThreadExecutorMetricsTest
Verifies that
VirtualThreadExecutorMetrics correctly increments its counters/gauges
when wrapped tasks are submitted, complete, or throw. Uses a cached thread pool as the
delegate (not the VT executor itself) so the test runs identically on JDK 17 and 21 — the
wrapper's instrumentation is independent of the underlying ExecutorService implementation.-
Constructor Details
-
VirtualThreadExecutorMetricsTest
public VirtualThreadExecutorMetricsTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp() -
tearDown
- Throws:
InterruptedException
-
submitRunnable_incrementsSubmittedAndCompleted
-
executeRunnableThatThrows_incrementsFailed
-
submitCallableThatThrows_incrementsFailed
@Test public void submitCallableThatThrows_incrementsFailed() -
activeGauge_tracksInFlightTasks
-
tagsArePresentOnAllMeters
@Test public void tagsArePresentOnAllMeters()
-