public class AbstractColorAssert<SELF extends AbstractColorAssert<SELF>>
extends org.assertj.core.api.AbstractAssert<SELF,javafx.scene.paint.Color>
Color assertions.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractColorAssert(javafx.scene.paint.Color color,
java.lang.Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
SELF |
doesNotHaveClosestNamedColor(javafx.scene.paint.Color namedColor)
Verifies that the actual
Color does not have the given namedColor as their
closest named color. |
SELF |
doesNotHaveClosestNamedColor(java.lang.String namedColor)
Verifies that the actual
Color does not have the given namedColor as their
closest named color. |
SELF |
hasClosestNamedColor(javafx.scene.paint.Color namedColor)
Verifies that the actual
Color has the given namedColor as their
closest named color. |
SELF |
hasClosestNamedColor(java.lang.String namedColor)
Verifies that the actual
Color has the given namedColor as their
closest named color. |
SELF |
isColor(javafx.scene.paint.Color color)
Verifies that the actual
Color is exactly equal to the given color. |
SELF |
isColor(javafx.scene.paint.Color color,
ColorMatcher colorMatcher)
Verifies that the actual
Color is matched by the given color
with respect to the given colorMatcher. |
SELF |
isColor(java.lang.String namedColor)
Verifies that the actual
Color is exactly equal to the given
named color. |
SELF |
isNotColor(javafx.scene.paint.Color color)
Verifies that the actual
Color is not exactly equal to the given color. |
SELF |
isNotColor(javafx.scene.paint.Color color,
ColorMatcher colorMatcher)
Verifies that the actual
Color is not matched by the given color
with respect to the given colorMatcher. |
SELF |
isNotColor(java.lang.String namedColor)
Verifies that the actual
Color is not exactly equal to the given
namedColor. |
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, withFailMessage, withRepresentation, withThreadDumpOnErrorprotected AbstractColorAssert(javafx.scene.paint.Color color,
java.lang.Class<?> selfType)
public SELF isColor(javafx.scene.paint.Color color)
Color is exactly equal to the given color.color - the given color to compare the actual color topublic SELF isNotColor(javafx.scene.paint.Color color)
Color is not exactly equal to the given color.color - the given color to compare the actual color topublic SELF isColor(javafx.scene.paint.Color color, ColorMatcher colorMatcher)
Color is matched by the given color
with respect to the given colorMatcher.
For example, to match colors using a custom matcher that considers two colors equal if they have the same red components:
assertThat(Color.rgb(0.3, 0.2, 0.1)).isColor(Color.rgb(0.3, 0.8, 0.7),
(c1, c2) -> c1.getRed() == c2.getRed());
color - the given color to compare the actual color tocolorMatcher - the color matcher to use for comparisonpublic SELF isNotColor(javafx.scene.paint.Color color, ColorMatcher colorMatcher)
Color is not matched by the given color
with respect to the given colorMatcher.color - the given color to compare the actual color tocolorMatcher - the color matcher to use for comparisonpublic SELF isColor(java.lang.String namedColor)
Color is exactly equal to the given
named color.namedColor - the given named color to compare the actual color tojava.lang.AssertionError - if the given named Color is not a JavaFX named colorpublic SELF isNotColor(java.lang.String namedColor)
Color is not exactly equal to the given
namedColor.namedColor - the given named color to compare the actual color tojava.lang.AssertionError - if the given named Color is not a JavaFX named colorpublic SELF hasClosestNamedColor(javafx.scene.paint.Color namedColor)
Color has the given namedColor as their
closest named color. The namedColor is not case sensitive.namedColor - the given named color to compare the actual color tojava.lang.AssertionError - if the given named Color is not a JavaFX named colorpublic SELF doesNotHaveClosestNamedColor(javafx.scene.paint.Color namedColor)
Color does not have the given namedColor as their
closest named color. The namedColor is not case sensitive.namedColor - the given named Color to compare the actual color tojava.lang.AssertionError - if the given named Color is not a JavaFX named colorpublic SELF hasClosestNamedColor(java.lang.String namedColor)
Color has the given namedColor as their
closest named color. The namedColor is not case sensitive.namedColor - the given named color String to compare the actual color tojava.lang.AssertionError - if the given named color is not a JavaFX named colorpublic SELF doesNotHaveClosestNamedColor(java.lang.String namedColor)
Color does not have the given namedColor as their
closest named color. The namedColor is not case sensitive.namedColor - the given named color String to compare the actual color tojava.lang.AssertionError - if the given named coloris not a JavaFX named color