Package io.qameta.allure
Interface AttachmentBytes
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides binary attachment content for custom values returned by methods annotated with
Attachment.
When an annotated method returns an implementation of this interface, the attachment aspect uses
attachmentBytes() instead of converting the returned object to a string.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the binary attachment content.
-
Method Details
-
attachmentBytes
byte[] attachmentBytes()Returns the binary attachment content.- Returns:
- the attachment content, must not be
null
-