org.fest.assertions.error
Class ShouldBeEqualColors
java.lang.Object
org.fest.assertions.error.BasicErrorMessageFactory
org.fest.assertions.error.ShouldBeEqualColors
- All Implemented Interfaces:
- ErrorMessageFactory
public class ShouldBeEqualColors
- extends BasicErrorMessageFactory
Creates an error message indicating that an assertion that verifies that a two colors are equal at a given point fails.
- Author:
- Yvonne Wang
shouldBeEqualColors
public static ErrorMessageFactory shouldBeEqualColors(RgbColor expected,
RgbColor actual,
Point point,
Offset<?> offset)
- Creates a new
ShouldBeEqualColors.
- Parameters:
expected - the expected color.actual - the actual color.point - the point where expected and actual were compared at.offset - helps decide if two colors are similar: two colors 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.
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.