Package io.qameta.allure.aspects
Class AttachmentsAspects
java.lang.Object
io.qameta.allure.aspects.AttachmentsAspects
Aspects (AspectJ) for handling
Attachment.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidPointcut for any methods.voidattachment(org.aspectj.lang.JoinPoint joinPoint, Object result) Handles the attachment callback.static AllureLifecycleReturns the lifecycle.voidPointcut for things annotated withAttachment.
-
Constructor Details
-
AttachmentsAspects
public AttachmentsAspects()
-
-
Method Details
-
withAttachmentAnnotation
public void withAttachmentAnnotation()Pointcut for things annotated withAttachment. -
anyMethod
public void anyMethod()Pointcut for any methods. -
attachment
Handles the attachment callback. If returned data is neither a byte array norAttachmentBytes, then use its string representation.- Parameters:
joinPoint- the join point to processresult- the model object or framework result to process
-
getLifecycle
Returns the lifecycle.- Returns:
- the Allure lifecycle used by this integration
-