|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.assertions.Assert
org.fest.assertions.GenericAssert<CharAssert,Character>
org.fest.assertions.CharAssert
public class CharAssert
Assertions for Characters and chars.
To create a new instance of this class invoke either or
Assertions.assertThat(Character).
Assertions.assertThat(char)
| Field Summary |
|---|
| Fields inherited from class org.fest.assertions.GenericAssert |
|---|
actual, myself |
| Constructor Summary | |
|---|---|
protected |
CharAssert(char actual)
Creates a new . |
protected |
CharAssert(Character actual)
Creates a new . |
| Method Summary | |
|---|---|
CharAssert |
isEqualTo(char expected)
Verifies that the Character value is equal to the given one. |
CharAssert |
isGreaterThan(char other)
Verifies that the Character value is greater than the given one. |
CharAssert |
isGreaterThanOrEqualTo(char other)
Verifies that the Character value is greater or equal to the given one. |
CharAssert |
isLessThan(char other)
Verifies that the Character value is less than the given one. |
CharAssert |
isLessThanOrEqualTo(char other)
Verifies that the Character value is less or equal to the given one. |
CharAssert |
isLowerCase()
Verifies that the Character value is an lower-case value. |
CharAssert |
isNotEqualTo(char other)
Verifies that the Character value is not equal to the given one. |
CharAssert |
isUpperCase()
Verifies that the Character value is an upper-case value. |
| Methods inherited from class org.fest.assertions.GenericAssert |
|---|
as, as, describedAs, describedAs, doesNotSatisfy, is, isEqualTo, isIn, isIn, isNot, isNotEqualTo, isNotIn, isNotIn, isNotNull, isNotSameAs, isNull, isSameAs, overridingErrorMessage, satisfies |
| Methods inherited from class org.fest.assertions.Assert |
|---|
customErrorMessage, description, description, description, equals, fail, fail, failIfCustomMessageIsSet, failIfCustomMessageIsSet, failure, formattedErrorMessage, hashCode, rawDescription, replaceDefaultErrorMessagesWith |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected CharAssert(char actual)
CharAssert.
actual - the actual value to verify.protected CharAssert(Character actual)
CharAssert.
actual - the actual value to verify.| Method Detail |
|---|
public CharAssert isEqualTo(char expected)
Character value is equal to the given one.
expected - the value to compare the actual one to.
AssertionError - if the Character value is not equal to the given one.public CharAssert isNotEqualTo(char other)
Character value is not equal to the given one.
other - the given value.
AssertionError - if the Character value is equal to the given one.public CharAssert isGreaterThan(char other)
Character value is greater than the given one.
other - the given value.
AssertionError - if the Character value is not greater than the given one.public CharAssert isLessThan(char other)
Character value is less than the given one.
other - the given value.
AssertionError - if the Character value is not less than the given one.public CharAssert isGreaterThanOrEqualTo(char other)
Character value is greater or equal to the given one.
other - the given value.
AssertionError - if the Character value is not greater than or equal to the given one.public CharAssert isLessThanOrEqualTo(char other)
Character value is less or equal to the given one.
other - the given value.
AssertionError - if the Character value is not less than or equal to the given one.public CharAssert isUpperCase()
Character value is an upper-case value.
AssertionError - if the Character value is not an upper-case value.public CharAssert isLowerCase()
Character value is an lower-case value.
AssertionError - if the Character value is not an lower-case value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||