org.fest.assertions.error
Class ShouldBeEqualColors

java.lang.Object
  extended by org.fest.assertions.error.BasicErrorMessageFactory
      extended by 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

Method Summary
static ErrorMessageFactory shouldBeEqualColors(RgbColor expected, RgbColor actual, Point point, Offset<?> offset)
          Creates a new ShouldBeEqualColors.
 
Methods inherited from class org.fest.assertions.error.BasicErrorMessageFactory
create, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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.