| Modifier and Type | Field and Description |
|---|---|
| pack-priv Comparables | |
| pack-priv Failures |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractByteArrayAssert | Returns: a newByteArrayAssert instance whose array under test is the result of the decoding.Decodes the actual value as a Base64 encoded string, the decoded bytes becoming the new array under test. |
| public AbstractBooleanAssert | Returns: a newBooleanAssert instance whose value under test is the result of the parse.Parses the actual value as boolean, the parsed boolean becoming the new value under test. |
| public AbstractByteAssert | Returns: a newByteAssert instance whose value under test is the result of the parse.Parses the actual value as byte, using radix 10, the parsed byte becoming the new value under test. |
| public AbstractDoubleAssert | Returns: a newDoubleAssert instance whose value under test is the result of the parse.Parses the actual value as double, the parsed double becoming the new value under test. |
| public AbstractFloatAssert | Returns: a newFloatAssert instance whose value under test is the result of the parse.Parses the actual value as float, the parsed float becoming the new value under test. |
| public AbstractIntegerAssert | Returns: a newIntegerAssert instance whose value under test is the result of the parse.Parses the actual value as integer, using radix 10, the parsed integer becoming the new value under test. |
| public AbstractLongAssert | Returns: a newLongAssert instance whose value under test is the result of the parse.Parses the actual value as long, using radix 10, the parsed long becoming the new value under test. |
| public AbstractShortAssert | Returns: a newShortAssert instance whose value under test is the result of the parse.Parses the actual value as short, using radix 10, the parsed short becoming the new value under test. |
| public AbstractByteArrayAssert | Returns: a newAbstractByteArrayAssert instance whose value under test is the result of parsing the string.Encodes the actual value as byte array using the platform's default charset, the encoded byte array becoming the new value under test. |
| public AbstractByteArrayAssert | Returns: a newAbstractByteArrayAssert instance whose value under test is the result of parsing the string.the charset)Charset to be used to encode the string.Encodes the actual value as byte array using a specific |
| public AbstractByteArrayAssert | Returns: a newAbstractByteArrayAssert instance whose value under test is the result of parsing the string.the Charset to be used to encode the string. charsetName)Encodes the actual value as byte array using a specific |
| public AbstractByteArrayAssert | Returns: a newByteArrayAssert instance whose array under test is the result of the decoding.
Deprecated
use
asBase64Decoded() instead.
|
| public SELF | Returns: this assertion object.Verifies that the actual value is a valid Base64 encoded string. |
| public SELF | Returns: this assertion object.the start value (inclusive), expected not to be null. startInclusive, String the end value (inclusive), expected not to be null. endInclusive)Verifies that the actual value is in [start, end] range (start included, end included) according to |
| public SELF | Returns: this assertion object.the format template used to build the expected String. expectedStringTemplate, Object... the arguments referenced by the format specifiers in the format string. args)Verifies that the actual value is equal to expected build using |
| public SELF | |
| public SELF | Returns: this assertion object.the other)String to compare the actual value to.Verifies that the actual value is greater than the given |
| public SELF | Returns: this assertion object.the other)String to compare the actual value to.Verifies that the actual value is greater than or equal to the given |
| public SELF | Returns: this assertion object.the other)String to compare the actual value to.Verifies that the actual value is less than the given |
| public SELF | Returns: this assertion object.the other)String to compare the actual value to.Verifies that the actual value is less than or equal to the given |
| public SELF | Returns: this assertion object.the start value (exclusive), expected not to be null. startExclusive, String the end value (exclusive), expected not to be null. endExclusive)Verifies that the actual value is strictly in ]start, end[ range (start excluded, end excluded) according to |
| public SELF | Returns: this assertion object.the comparator to use for the incoming assertions. customComparator)Overrides org. Implements org. String natural comparator for the incoming assertions.
|
| public SELF | Returns: this assertion object.the comparator to use for the incoming assertions. customComparator, String comparator description to be used in assertion error messages customComparatorDescription)Overrides org. Implements org. String natural comparator for the incoming assertions.
|
| public SELF | usingDefaultComparator()
Overrides org. Implements org. |
| comparables | back to summary |
|---|---|
| pack-priv Comparables comparables
| |
| failures | back to summary |
|---|---|
| pack-priv Failures failures
| |
| AbstractStringAssert | back to summary |
|---|---|
| protected AbstractStringAssert(String actual, Class<?> selfType) | |
| asBase64Decoded | back to summary |
|---|---|
| public AbstractByteArrayAssert Decodes the actual value as a Base64 encoded string, the decoded bytes becoming the new array under test. Examples:
| |
| asBoolean | back to summary |
|---|---|
| public AbstractBooleanAssert Parses the actual value as boolean, the parsed boolean becoming the new value under test.
Note that only when the string is equal to the string "true", ignoring case, and can have leading and trailing space, the parsed value will be Examples:
| |
| asByte | back to summary |
|---|---|
| public AbstractByteAssert Parses the actual value as byte, using radix 10, the parsed byte becoming the new value under test. Examples:
| |
| asDouble | back to summary |
|---|---|
| public AbstractDoubleAssert Parses the actual value as double, the parsed double becoming the new value under test. Examples:
| |
| asFloat | back to summary |
|---|---|
| public AbstractFloatAssert Parses the actual value as float, the parsed float becoming the new value under test. Examples:
| |
| asInt | back to summary |
|---|---|
| public AbstractIntegerAssert Parses the actual value as integer, using radix 10, the parsed integer becoming the new value under test. Examples:
| |
| asLong | back to summary |
|---|---|
| public AbstractLongAssert Parses the actual value as long, using radix 10, the parsed long becoming the new value under test. Examples:
| |
| asShort | back to summary |
|---|---|
| public AbstractShortAssert Parses the actual value as short, using radix 10, the parsed short becoming the new value under test. Examples:
| |
| bytes | back to summary |
|---|---|
| public AbstractByteArrayAssert Encodes the actual value as byte array using the platform's default charset, the encoded byte array becoming the new value under test. Examples:
| |
| bytes | back to summary |
|---|---|
| public AbstractByteArrayAssert Encodes the actual value as byte array using a specific Examples:
| |
| bytes | back to summary |
|---|---|
| public AbstractByteArrayAssert Encodes the actual value as byte array using a specific Examples:
| |
| decodedAsBase64 | back to summary |
|---|---|
| public AbstractByteArrayAssert Deprecated use Decodes the actual value as a Base64 encoded string, the decoded bytes becoming the new array under test. Examples:
| |
| isBase64 | back to summary |
|---|---|
| public SELF isBase64() Verifies that the actual value is a valid Base64 encoded string. Examples:
| |
| isBetween | back to summary |
|---|---|
| public SELF isBetween(String startInclusive, String endInclusive) Verifies that the actual value is in [start, end] range (start included, end included) according to
Note that it is possible to change the comparison strategy with Examples:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(String expectedStringTemplate, Object... args) Verifies that the actual value is equal to expected build using
Note that for this assertion to be called, you must use a format template with parameters otherwise Examples:
| |
| isEqualTo | back to summary |
|---|---|
| public SELF isEqualTo(String expected) Verifies that the actual value is equal to expected.
This method needs to be overridden because otherwise
| |
| isGreaterThan | back to summary |
|---|---|
| public SELF isGreaterThan(String other) Verifies that the actual value is greater than the given
Note that it is possible to change the comparison strategy with Examples:
| |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public SELF isGreaterThanOrEqualTo(String other) Verifies that the actual value is greater than or equal to the given
Note that it is possible to change the comparison strategy with Examples:
| |
| isLessThan | back to summary |
|---|---|
| public SELF isLessThan(String other) Verifies that the actual value is less than the given
Note that it is possible to change the comparison strategy with Examples:
| |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public SELF isLessThanOrEqualTo(String other) Verifies that the actual value is less than or equal to the given
Note that it is possible to change the comparison strategy with Examples:
| |
| isStrictlyBetween | back to summary |
|---|---|
| public SELF isStrictlyBetween(String startExclusive, String endExclusive) Verifies that the actual value is strictly in ]start, end[ range (start excluded, end excluded) according to
Note that it is possible to change the comparison strategy with Examples:
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super String> customComparator) Overrides org. Implements org. Use the given custom comparator instead of relying on
The custom comparator is bound to an assertion instance, meaning that if a new assertion instance is created
it is forgotten and the default ( Examples :
| |
| usingComparator | back to summary |
|---|---|
| public SELF usingComparator(Comparator<? super String> customComparator, String customComparatorDescription) Overrides org. Implements org. Use the given custom comparator instead of relying on
The custom comparator is bound to an assertion instance, meaning that if a new assertion instance is created
it is forgotten and the default ( 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
| |