org.junit.jupiter.api.extension.TestWatcher Java Examples
The following examples show how to use
org.junit.jupiter.api.extension.TestWatcher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ArchiveTests.java From aeron with Apache License 2.0 | 5 votes |
public static TestWatcher newWatcher(final long seed) { return new TestWatcher() { public void testFailed(final ExtensionContext context, final Throwable cause) { System.err.println(context.getDisplayName() + " failed with random seed: " + seed); } }; }