|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fest.swing.fixture.ColorFixture
public class ColorFixture
Understands state verification of
s.
Color
Constructor Summary | |
---|---|
ColorFixture(Color target)
Creates a new ColorFixture . |
|
ColorFixture(Color target,
org.fest.assertions.Description description)
Creates a new ColorFixture . |
|
ColorFixture(Color target,
String description)
Creates a new ColorFixture . |
Method Summary | |
---|---|
String |
description()
Returns this fixture's description. |
ColorFixture |
requireEqualTo(Color color)
Verifies that this fixture's Color is equal to the given one. |
ColorFixture |
requireEqualTo(String hexValue)
Verifies that this fixture's Color is equal to the given color represented by the given hexadecimal
value (e.g. |
ColorFixture |
requireNotEqualTo(Color color)
Verifies that this fixture's Color is not equal to the given one. |
ColorFixture |
requireNotEqualTo(String hexValue)
Verifies that this fixture's Color is not equal to the given color represented by the given
hexadecimal value (e.g. |
Color |
target()
Returns this fixture's color. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorFixture(Color target)
ColorFixture
.
target
- the color to manage.
NullPointerException
- if target
is null
.public ColorFixture(Color target, String description)
ColorFixture
.
target
- the color to manage.description
- this fixture's description.
NullPointerException
- if target
is null
.public ColorFixture(Color target, org.fest.assertions.Description description)
ColorFixture
.
target
- the color to manage.description
- this fixture's description.
NullPointerException
- if target
is null
.Method Detail |
---|
public ColorFixture requireEqualTo(String hexValue)
Color
is equal to the given color represented by the given hexadecimal
value (e.g. "82A9FF".)
hexValue
- the value representing the color to compare to.
NullPointerException
- if the hexadecimal code is null
.
IllegalArgumentException
- if the hexadecimal code is empty.
NumberFormatException
- if the hexadecimal code is empty.
AssertionError
- if this fixture's Color
is not equal to the given one.public ColorFixture requireEqualTo(Color color)
Color
is equal to the given one.
color
- the given Color
to compare to.
AssertionError
- if this fixture's Color
is not equal to the given one.public ColorFixture requireNotEqualTo(String hexValue)
Color
is not equal to the given color represented by the given
hexadecimal value (e.g. "82A9FF".)
hexValue
- the value representing the color to compare to.
NullPointerException
- if the hexadecimal code is null
.
IllegalArgumentException
- if the hexadecimal code is empty.
NumberFormatException
- if the hexadecimal code is empty.
AssertionError
- if this fixture's Color
is equal to the given one.public ColorFixture requireNotEqualTo(Color color)
Color
is not equal to the given one.
color
- the given Color
to compare to.
AssertionError
- if this fixture's Color
is equal to the given one.public Color target()
public final String description()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |