Class AllureAspectJ

java.lang.Object
io.qameta.allure.assertj.AllureAspectJ

public class AllureAspectJ extends Object
Captures user-side AssertJ factories and fluent calls, then delegates assertion-chain state to AssertJRecorder.
  • Constructor Details

    • AllureAspectJ

      public AllureAspectJ()
  • Method Details

    • assertFactoryCall

      public void assertFactoryCall()
    • assertOperationCall

      public void assertOperationCall(org.assertj.core.api.AbstractAssert<?,?> assertion)
    • userCodeCall

      public void userCodeCall()
      Handles the user code call callback.
    • logAssertCreation

      public void logAssertCreation(org.aspectj.lang.JoinPoint joinPoint, Object result)
    • logAssertOperation

      public Object logAssertOperation(org.aspectj.lang.ProceedingJoinPoint joinPoint, org.assertj.core.api.AbstractAssert<?,?> assertion) throws Throwable
      Returns the log assert operation.
      Parameters:
      joinPoint - the join point
      assertion - the assertion
      Returns:
      the log assert operation
      Throws:
      Throwable - if the underlying framework operation fails
    • softAssertionFailed

      public void softAssertionFailed(AssertionError error)
    • setLifecycle

      public static void setLifecycle(io.qameta.allure.AllureLifecycle allure)
      For tests only.
      Parameters:
      allure - allure lifecycle to set.
    • getLifecycle

      public static io.qameta.allure.AllureLifecycle getLifecycle()
      Returns the lifecycle.
      Returns:
      the Allure lifecycle used by this integration
    • clearContext

      public static void clearContext()
      Handles the clear context callback.