Interface StubLifecycle
public interface StubLifecycle
Helper interface for lifecycle-aware stubs implementation. Works with junit 5
StubBean extension
and raw StubsHook. For stubs, implementing
this interface, before and after methods would be called before and after each test (to perform some
cleanups or reset state).- Since:
- 07.02.2025
-
Method Summary
-
Method Details
-
before
default void before()Called before each test method. -
after
default void after()Called after each test method.
-