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 TypeMethodDescriptionvoid
Pointcut for any methods.void
attachment
(org.aspectj.lang.JoinPoint joinPoint, Object result) Process data returned from method annotated withAttachment
.static AllureLifecycle
static void
setLifecycle
(AllureLifecycle allure) For tests only.void
Pointcut 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
Process data returned from method annotated withAttachment
. If returned data is not a byte array, then use toString() method, and get bytes from it.- Parameters:
joinPoint
- the join point to process.result
- the returned value.
-
setLifecycle
For tests only.- Parameters:
allure
- allure lifecycle to set.
-
getLifecycle
-