public class AttachmentsAspects
extends java.lang.Object
Attachment.| Constructor and Description |
|---|
AttachmentsAspects() |
| Modifier and Type | Method and Description |
|---|---|
void |
anyMethod()
Pointcut for any methods.
|
void |
attachment(org.aspectj.lang.JoinPoint joinPoint,
java.lang.Object result)
Process data returned from method annotated with
Attachment. |
static AllureLifecycle |
getLifecycle() |
static void |
setLifecycle(AllureLifecycle allure)
For tests only.
|
void |
withAttachmentAnnotation()
Pointcut for things annotated with
Attachment. |
public void withAttachmentAnnotation()
Attachment.public void anyMethod()
public void attachment(org.aspectj.lang.JoinPoint joinPoint,
java.lang.Object result)
Attachment.
If returned data is not a byte array, then use toString() method, and get bytes from it.joinPoint - the join point to process.result - the returned value.public static void setLifecycle(AllureLifecycle allure)
allure - allure lifecycle to set.public static AllureLifecycle getLifecycle()