Interface ClassInterceptor


public interface ClassInterceptor
Interface to implement ClassInterceptor
  • Field Details

  • Method Details

    • initialize

      default void initialize(EngineContext engineContext) throws Throwable
      ClassInterceptor initialize
      Parameters:
      engineContext - engineContext
      Throws:
      Throwable - throwable
    • predicate

      default Predicate<ClassContext> predicate()
      ClassInterceptor Predicate
      Returns:
      a Predicate
    • preInstantiate

      default void preInstantiate(EngineContext engineContext, Class<?> testClass) throws Throwable
      ClassInterceptor preInstantiate callback
      Parameters:
      engineContext - engineContext
      testClass - testClass
      Throws:
      Throwable - Throwable
    • postInstantiate

      default void postInstantiate(EngineContext engineContext, Class<?> testClass, Object testInstance, Throwable throwable) throws Throwable
      ClassInterceptor postInstantiate callback
      Parameters:
      engineContext - engineContext
      testClass - testClass
      testInstance - testInstance
      throwable - throwable
      Throws:
      Throwable - Throwable
    • prePrepare

      default void prePrepare(ClassContext classContext) throws Throwable
      ClassInterceptor prePrepare callback
      Parameters:
      classContext - classContext
      Throws:
      Throwable - Throwable
    • postPrepare

      default void postPrepare(ClassContext classContext, Throwable throwable) throws Throwable
      ClassInterceptor postPrepare callback
      Parameters:
      classContext - classContext
      throwable - throwable
      Throws:
      Throwable - Throwable
    • preBeforeAll

      default void preBeforeAll(ArgumentContext argumentContext) throws Throwable
      ClassInterceptor preBeforeAll callback
      Parameters:
      argumentContext - argumentContext
      Throws:
      Throwable - Throwable
    • postBeforeAll

      default void postBeforeAll(ArgumentContext argumentContext, Throwable throwable) throws Throwable
      ClassInterceptor postBeforeAll callback
      Parameters:
      argumentContext - argumentContext
      throwable - throwable
      Throws:
      Throwable - Throwable
    • preBeforeEach

      default void preBeforeEach(ArgumentContext argumentContext) throws Throwable
      ClassInterceptor preBeforeEach callback
      Parameters:
      argumentContext - argumentContext
      Throws:
      Throwable - Throwable
    • postBeforeEach

      default void postBeforeEach(ArgumentContext argumentContext, Throwable throwable) throws Throwable
      ClassInterceptor postBeforeEach callback
      Parameters:
      argumentContext - argumentContext
      throwable - throwable
      Throws:
      Throwable - Throwable
    • preTest

      default void preTest(ArgumentContext argumentContext, Method testMethod) throws Throwable
      ClassInterceptor preTest callback
      Parameters:
      argumentContext - argumentContext
      testMethod - testMethod
      Throws:
      Throwable - Throwable
    • postTest

      default void postTest(ArgumentContext argumentContext, Method testMethod, Throwable throwable) throws Throwable
      ClassInterceptor postTest callback
      Parameters:
      argumentContext - argumentContext
      testMethod - testMethod
      throwable - throwable
      Throws:
      Throwable - Throwable
    • preAfterEach

      default void preAfterEach(ArgumentContext argumentContext) throws Throwable
      ClassInterceptor preAfterEach callback
      Parameters:
      argumentContext - argumentContext
      Throws:
      Throwable - Throwable
    • postAfterEach

      default void postAfterEach(ArgumentContext argumentContext, Throwable throwable) throws Throwable
      ClassInterceptor postAfterEach callback
      Parameters:
      argumentContext - argumentContext
      throwable - throwable
      Throws:
      Throwable - Throwable
    • preAfterAll

      default void preAfterAll(ArgumentContext argumentContext) throws Throwable
      ClassInterceptor preAfterAll callback
      Parameters:
      argumentContext - argumentContext
      Throws:
      Throwable - Throwable
    • postAfterAll

      default void postAfterAll(ArgumentContext argumentContext, Throwable throwable) throws Throwable
      ClassInterceptor postAfterAll callback
      Parameters:
      argumentContext - argumentContext
      throwable - throwable
      Throws:
      Throwable - Throwable
    • preConclude

      default void preConclude(ClassContext classContext) throws Throwable
      ClassInterceptor preConclude callback
      Parameters:
      classContext - classContext
      Throws:
      Throwable - Throwable
    • postConclude

      default void postConclude(ClassContext classContext, Throwable throwable) throws Throwable
      ClassInterceptor postConclude callback
      Parameters:
      classContext - classContext
      throwable - throwable
      Throws:
      Throwable - Throwable
    • onDestroy

      default void onDestroy(ClassContext classContext) throws Throwable
      ClassInterceptor onDestroy callback
      Parameters:
      classContext - classContext
      Throws:
      Throwable - Throwable
    • destroy

      default void destroy(EngineContext engineContext) throws Throwable
      ClassInterceptor destroy
      Parameters:
      engineContext - engineContext
      Throws:
      Throwable - Throwable
    • rethrow

      default void rethrow(Throwable throwable) throws Throwable
      Rethrows a Throwable if not null
      Parameters:
      throwable - throwable
      Throws:
      Throwable - Throwable