public interface CustomExtension
EachCallbackWrapper
or AllCallbackWrapper
.
before
method will be called in beforeEach
or beforeAll
. after
will be called in afterEach
or afterAll
.
Usage example:
{@code public class Test{ CustomExtension eachCustom = new CustomExtensionImpl1(); CustomExtension allCustom = new CustomExtensionImpl2();
Modifier and Type | Method and Description |
---|---|
default void |
after(org.junit.jupiter.api.extension.ExtensionContext context) |
default void |
before(org.junit.jupiter.api.extension.ExtensionContext context) |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.