Characters.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Characters |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public SELF | Returns: this assertion object.Use unicode character representation instead of standard representation in error messages. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. expected)Verifies that the actual value is equal to the given one. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Overrides org. Implements org. |
| public SELF | Returns: this assertion object.Verifies that the actual value is a lowercase character. |
| public SELF | Returns: this assertion object.the given value to compare the actual value to. other)Verifies that the actual value is not equal to the given one. |
| public SELF | Returns: this assertion object.Verifies that the actual value is a uppercase character. |
| public SELF | usingComparator(Comparator<? super Character>
the comparator to use for the incoming assertion checks. customComparator)Overrides org. Implements org. |
| public SELF | usingComparator(Comparator<? super Character>
the comparator to use for the incoming assertion checks. customComparator, String comparator description to be used in assertion error messages customComparatorDescription)Overrides org. Implements org. |
| public SELF | usingDefaultComparator()
Overrides org. Implements org. |
| characters | back to summary |
|---|---|
| pack-priv Characters characters
| |
| AbstractCharacterAssert | back to summary |
|---|---|
| protected AbstractCharacterAssert(Character actual, Class<?> selfType) | |
| inUnicode | back to summary |
|---|---|
| public SELF inUnicode() Use unicode character representation instead of standard representation in error messages. It can be useful when comparing UNICODE characters - many unicode chars have duplicate characters assigned, it is thus impossible to find differences from the standard error message: With standard error message:
With unicode based error message:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(char expected) Verifies that the actual value is equal to the given one. Example:
| |
| isGreaterThan | back to summary |
|---|---|
| public SELF isGreaterThan(char other) Overrides org. Implements org. Verifies that the actual value is greater than the given one. Example:
| |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public SELF isGreaterThanOrEqualTo(char other) Overrides org. Implements org. Verifies that the actual value is greater than or equal to the given one. Example:
| |
| isLessThan | back to summary |
|---|---|
| public SELF isLessThan(char other) Overrides org. Implements org. Verifies that the actual value is less than the given one. Example:
| |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public SELF isLessThanOrEqualTo(char other) Overrides org. Implements org. Verifies that the actual value is less than or equal to the given one. Example:
| |
| isLowerCase | back to summary |
|---|---|
| public SELF isLowerCase() Verifies that the actual value is a lowercase character. Example:
| |
| isNotEqualTo | back to summary |
|---|---|
| public SELF isNotEqualTo(char other) Verifies that the actual value is not equal to the given one. Example:
| |
| isUpperCase | back to summary |
|---|---|
| public SELF isUpperCase() Verifies that the actual value is a uppercase character. Example:
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super Character> customComparator) Overrides org. Implements org. Doc from org. Use the given custom comparator instead of relying on actual type A equals method for incoming assertion checks. The custom comparator is bound to assertion instance, meaning that if a new assertion instance is created, the default comparison strategy will be used. Examples :
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super Character> customComparator, String customComparatorDescription) Overrides org. Implements org. Doc from org. Use the given custom comparator instead of relying on actual type A equals method for incoming assertion checks. The custom comparator is bound to assertion instance, meaning that if a new assertion instance is created, the default comparison strategy will be used. Examples :
| |
| usingDefaultComparator | back to summary |
|---|---|
| public SELF usingDefaultComparator() Overrides org. Implements org. Doc from org. Revert to standard comparison for the incoming assertion checks.
This method should be used to disable a custom comparison strategy set by calling
| |