Class ExecutorsTest
java.lang.Object
ubic.gemma.core.util.concurrent.ExecutorsTest
Unit tests for
Executors: the in-tree factory that wraps every executor
produced for the project with Spring-Security's
DelegatingSecurityContextExecutorService plus the log4j ThreadContext
propagator. Pins the wrapping contract (so the layered delegation never silently
regresses), the JDK 21 virtual-thread reflection path, and the basic functional
behaviour (a submitted task actually runs on the returned executor).- Author:
- claude
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
ExecutorsTest
public ExecutorsTest()
-
-
Method Details
-
newSingleThreadExecutor_returnsSecurityContextWrappedExecutor
-
newSingleThreadExecutor_withThreadFactory_consultsTheFactory
-
newFixedThreadPool_returnsSecurityContextWrappedExecutor
-
newFixedThreadPool_withThreadFactory_returnsWrappedExecutor
-
newCachedThreadPool_returnsSecurityContextWrappedExecutor
-
newSingleThreadScheduledExecutor_returnsSecurityContextWrappedExecutor
-
newVirtualThreadPerTaskExecutorIfAvailable_returnsWrappedExecutor
-