public class ShouldBeEqualColors
extends org.assertj.core.error.BasicErrorMessageFactory
| Modifier and Type | Method and Description |
|---|---|
static org.assertj.core.error.ErrorMessageFactory |
shouldBeEqualColors(RgbColor expected,
RgbColor actual,
Point point,
org.assertj.core.data.Offset<?> offset)
Creates a new
. |
public static org.assertj.core.error.ErrorMessageFactory shouldBeEqualColors(RgbColor expected, RgbColor actual, Point point, org.assertj.core.data.Offset<?> offset)
ShouldBeEqualColors.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.ErrorMessageFactory.Copyright © 2014 AssertJ. All rights reserved.