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) Process data returned from method annotated withAttachment.static AllureLifecyclestatic voidsetLifecycle(AllureLifecycle allure) For tests only.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
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
-