Class BuildWatcherExtension
java.lang.Object
org.jvnet.hudson.test.junit.jupiter.BuildWatcherExtension
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterAllCallback,org.junit.jupiter.api.extension.BeforeAllCallback,org.junit.jupiter.api.extension.Extension
public final class BuildWatcherExtension
extends Object
implements org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
Echoes build output to standard error as it arrives.
Usage:
@RegisterExtension
private static final BuildWatcherExtension buildWatcher = new BuildWatcherExtension();
Should work in combination with JenkinsRule or JenkinsSessionExtension.
This is the JUnit5 implementation of BuildWatcher.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BuildWatcherExtension
public BuildWatcherExtension()
-
-
Method Details
-
beforeAll
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Exception - Specified by:
beforeAllin interfaceorg.junit.jupiter.api.extension.BeforeAllCallback- Throws:
Exception
-
afterAll
public void afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Exception - Specified by:
afterAllin interfaceorg.junit.jupiter.api.extension.AfterAllCallback- Throws:
Exception
-