You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added extension @DisableLogging to disable logging for tests, and extension @LogOnFailure to disable logging for successful tests but not for failed tests.
Added method capture to classes JdkLoggerContext, Log4jLoggerContext, LogbackLoggerContext and Reload4jLoggerContext. This allows logged records / events to be captured without having to configure handlers / appenders manually.
It's now possible to use more than one of JdkLoggerContext, Log4jLoggerContext, LogbackLoggerContext and Reload4jLoggerContext for the same name or class.
Testing concurrent code
Added class ConcurrentRunner to help with running code concurrently.
Simplify writing JUnit extensions
InjectingExtension and AnnotationBasedInjectingExtension now use var handles to inject field values. The MethodHandle.Lookup used for this must be provided as additional constructor argument, so test classes must be opened to modules that contain sub classes of InjectingExtension and AnnotationBasedInjectingExtension separately, instead of piggy-backing on them being opened to the junit-support module.
Pre-defined tests
Added pre-defined tests for methods added between Java 9 and 11: