Class ShouldBeEqualImages

  • All Implemented Interfaces:
    ErrorMessageFactory

    public class ShouldBeEqualImages
    extends BasicErrorMessageFactory
    Creates an error message that indicates an assertion that verifies that two images are equal failed.
    Author:
    Yvonne Wang
    • Method Detail

      • shouldBeEqualImages

        public static ErrorMessageFactory shouldBeEqualImages​(Offset<java.lang.Integer> offset)
        Creates a new ShouldBeEqualImages.
        Parameters:
        offset - helps decide if the color of two pixels are similar: two pixels that are identical to the human eye may still have slightly different color values. For example, by using an offset of 1 we can indicate that a blue value of 60 is similar to a blue value of 61.
        Returns:
        the created ErrorMessageFactory.