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

    Modifier and Type
    Method
    Description
    default void
    Called after each test method.
    default void
    Called before each test method.
  • Method Details

    • before

      default void before()
      Called before each test method.
    • after

      default void after()
      Called after each test method.