Package org.junit.jupiter.api
Class AssertTimeout.TimeoutThreadFactory
java.lang.Object
org.junit.jupiter.api.AssertTimeout.TimeoutThreadFactory
- All Implemented Interfaces:
ThreadFactory
- Enclosing class:
- AssertTimeout
The thread factory used for preemptive timeout.
The factory creates threads with meaningful names, helpful for debugging purposes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
threadNumber
-
-
Constructor Details
-
TimeoutThreadFactory
private TimeoutThreadFactory()
-
-
Method Details
-
newThread
- Specified by:
newThread
in interfaceThreadFactory
-