Class FilesystemAttachmentListener

  • All Implemented Interfaces:
    AttachmentListener

    @Component("tapirFilesystemAttachmentListener")
    public class FilesystemAttachmentListener
    extends java.lang.Object
    implements AttachmentListener
    Implementation of AttachmentListener which writes the attachment to a temporary directory in the filesystem. The location is reported at info level by using the logger.
    Since:
    2.0.0
    Author:
    Oliver Libutzki <[email protected]>
    • Constructor Detail

      • FilesystemAttachmentListener

        public FilesystemAttachmentListener()
    • Method Detail

      • attachmentAdded

        public void attachmentAdded​(TestStep testStep,
                                    Attachment attachment)
        Description copied from interface: AttachmentListener
        Called whenever an attachment is added.
        Specified by:
        attachmentAdded in interface AttachmentListener
        Parameters:
        testStep - the current test step
        attachment - The attachment which has been added
        Since:
        2.0.0