Class ExtendedResultFixture.ExtendedResultImage

  • Enclosing interface:
    ExtendedResultFixture

    public static final class ExtendedResultFixture.ExtendedResultImage
    extends ExtendedResultFixture.ExtendedResult
    Encapsulates an image which is to be provided as extended result. The creator can optionally specify the preferred compression type to use when the image is encoded to integrate it into the results.
    Author:
    Rene Schneider - initial API and implementation
    • Constructor Detail

      • ExtendedResultImage

        public ExtendedResultImage​(java.awt.image.BufferedImage anImage)
                            throws java.io.IOException
        Creates a new instance, using the default compression type (PNG) and no title.
        Parameters:
        anImage - the image to encapsulate
        Throws:
        java.io.IOException - in case of compression/encoding errors
      • ExtendedResultImage

        public ExtendedResultImage​(java.lang.String aTitle,
                                   java.awt.image.BufferedImage anImage)
                            throws java.io.IOException
        Creates a new instance, using the default compression type (PNG).
        Parameters:
        aTitle - the title of this extended result (may be null)
        anImage - the image to encapsulate
        Throws:
        java.io.IOException - in case of compression/encoding errors
      • ExtendedResultImage

        public ExtendedResultImage​(java.lang.String aTitle,
                                   java.awt.image.BufferedImage anImage,
                                   ExtendedResultFixture.ExtendedResultImage.ImageCompressionType aCompressionType)
                            throws java.io.IOException
        Creates a new instance, using the provided image and compression type.
        Parameters:
        aTitle - the title of this extended result (may be null)
        anImage - the image to encapsulate
        aCompressionType - the preferred compression type to use when encoding the image for the results
        Throws:
        java.io.IOException - in case of compression/encoding errors