public class Strings extends Object
CharSequences.| Constructor and Description |
|---|
Strings(ComparisonStrategy comparisonStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertBlank(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is Null, empty or consists of one or more whitespace characters. |
void |
assertContains(AssertionInfo info,
CharSequence actual,
CharSequence... values)
Verifies that the given
CharSequence contains the given strings. |
void |
assertContainsIgnoringCase(AssertionInfo info,
CharSequence actual,
CharSequence sequence)
Verifies that the given
CharSequence contains the given sequence, ignoring case considerations. |
void |
assertContainsOnlyDigits(AssertionInfo info,
CharSequence actual)
Verifies that the given
CharSequence contains only digits. |
void |
assertContainsOnlyOnce(AssertionInfo info,
CharSequence actual,
CharSequence sequence)
Verifies that actual
CharSequences contains only once the given sequence. |
void |
assertContainsOnlyWhitespaces(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence consists of one or more whitespace characters. |
void |
assertContainsPattern(AssertionInfo info,
CharSequence actual,
CharSequence regex)
Verifies that the given
CharSequence contains the given regular expression. |
void |
assertContainsPattern(AssertionInfo info,
CharSequence actual,
Pattern pattern)
Verifies that the given
CharSequence contains the given regular expression. |
void |
assertContainsSequence(AssertionInfo info,
CharSequence actual,
CharSequence[] sequence)
Verifies that the given charSequence contains the given sequence of charSequence, without any other charSequences between them.
|
void |
assertContainsSubsequence(AssertionInfo info,
CharSequence actual,
CharSequence[] subsequence)
Verifies that the actual
CharSequence contains all the given values in the given order
(possibly with other values between them). |
void |
assertContainsWhitespaces(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence contains one or more whitespace characters. |
void |
assertDoesNotContain(AssertionInfo info,
CharSequence actual,
CharSequence... values)
Verifies that the given
CharSequence does not contain any one of the given values. |
void |
assertDoesNotContainAnyWhitespaces(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is Null, empty or contains only non-whitespace characters. |
void |
assertDoesNotContainOnlyWhitespaces(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is Null, empty or contains at least one non-whitespace character. |
void |
assertDoesNotContainPattern(AssertionInfo info,
CharSequence actual,
CharSequence regex)
Verifies that the given
CharSequence does not contain the given regular expression. |
void |
assertDoesNotContainPattern(AssertionInfo info,
CharSequence actual,
Pattern pattern)
Verifies that the given
CharSequence does not contain the given regular expression. |
void |
assertDoesNotEndWith(AssertionInfo info,
CharSequence actual,
CharSequence suffix)
Verifies that the given
CharSequence does not end with the given suffix. |
void |
assertDoesNotMatch(AssertionInfo info,
CharSequence actual,
CharSequence regex)
Verifies that the given
CharSequence does not match the given regular expression. |
void |
assertDoesNotMatch(AssertionInfo info,
CharSequence actual,
Pattern pattern)
Verifies that the given
CharSequence does not match the given regular expression. |
void |
assertDoesNotStartWith(AssertionInfo info,
CharSequence actual,
CharSequence prefix)
Verifies that the given
CharSequence does not start with the given prefix. |
void |
assertEmpty(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is empty. |
void |
assertEndsWith(AssertionInfo info,
CharSequence actual,
CharSequence suffix)
Verifies that the given
CharSequence ends with the given suffix. |
void |
assertEqualsIgnoringCase(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are equal, ignoring case considerations. |
void |
assertEqualsIgnoringWhitespace(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are equal, ignoring any differences in whitespace. |
void |
assertEqualsNormalizingWhitespace(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are equal, after the whitespace of both strings
has been normalized. |
void |
assertHasLineCount(AssertionInfo info,
CharSequence actual,
int expectedLineCount)
Asserts that the line count of the given
CharSequence is equal to the expected one. |
void |
assertHasSameSizeAs(AssertionInfo info,
CharSequence actual,
CharSequence other) |
void |
assertHasSameSizeAs(AssertionInfo info,
CharSequence actual,
Iterable<?> other)
Asserts that the number of entries in the given
CharSequence has the same size as the other
Iterable. |
void |
assertHasSameSizeAs(AssertionInfo info,
CharSequence actual,
Object array)
Asserts that the number of entries in the given
CharSequence has the same size as the other array. |
void |
assertHasSize(AssertionInfo info,
CharSequence actual,
int expectedSize)
Asserts that the size of the given
CharSequence is equal to the expected one. |
void |
assertHasSizeBetween(AssertionInfo info,
CharSequence actual,
int lowerBoundary,
int higherBoundary)
Asserts that the size of the given
CharSequence is between the given lower and higher boundary (inclusive). |
void |
assertHasSizeGreaterThan(AssertionInfo info,
CharSequence actual,
int expectedMinSizeExcluded)
Asserts that the size of the given
CharSequence is greater than the expected size |
void |
assertHasSizeGreaterThanOrEqualTo(AssertionInfo info,
CharSequence actual,
int expectedMinSizeIncluded)
Asserts that the size of the given
CharSequence is greater than or equal to the expected size |
void |
assertHasSizeLessThan(AssertionInfo info,
CharSequence actual,
int expectedMaxSizeExcluded)
Asserts that the size of the given
CharSequence is less than the expected size |
void |
assertHasSizeLessThanOrEqualTo(AssertionInfo info,
CharSequence actual,
int expectedMaxSizeIncluded)
Asserts that the size of the given
CharSequence is less than or equal to the expected size |
void |
assertIsEqualToIgnoringNewLines(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that actual is equal to expected ignoring new lines
|
void |
assertIsEqualToNormalizingNewlines(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are not equal, normalizing newlines. |
void |
assertIsSubstringOf(AssertionInfo info,
CharSequence actual,
CharSequence sequence) |
void |
assertJavaBlank(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence consists of one or more whitespace characters
according to Character.isWhitespace(char). |
void |
assertLowerCase(AssertionInfo info,
CharSequence actual) |
void |
assertMatches(AssertionInfo info,
CharSequence actual,
CharSequence regex)
Verifies that the given
CharSequence matches the given regular expression. |
void |
assertMatches(AssertionInfo info,
CharSequence actual,
Pattern pattern)
Verifies that the given
CharSequence matches the given regular expression. |
void |
assertNotBlank(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence contains at least one non-whitespace character. |
void |
assertNotEmpty(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is not empty. |
void |
assertNotEqualsIgnoringCase(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are not equal, ignoring case considerations. |
void |
assertNotEqualsIgnoringWhitespace(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are not equal, ignoring any differences in whitespace. |
void |
assertNotEqualsNormalizingWhitespace(AssertionInfo info,
CharSequence actual,
CharSequence expected)
Verifies that two
CharSequences are not equal, after the whitespace of both strings
has been normalized. |
void |
assertNotJavaBlank(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is Null, empty or contains at least one non-whitespace character
according to Character.isWhitespace(char). |
void |
assertNullOrEmpty(AssertionInfo info,
CharSequence actual)
Asserts that the given
CharSequence is null or empty. |
void |
assertStartsWith(AssertionInfo info,
CharSequence actual,
CharSequence prefix)
Verifies that the given
CharSequence starts with the given prefix. |
void |
assertUpperCase(AssertionInfo info,
CharSequence actual) |
void |
assertXmlEqualsTo(AssertionInfo info,
CharSequence actualXml,
CharSequence expectedXml) |
Comparator<?> |
getComparator() |
static Strings |
instance()
Returns the singleton instance of this class based on
StandardComparisonStrategy. |
public Strings(ComparisonStrategy comparisonStrategy)
public static Strings instance()
StandardComparisonStrategy.StandardComparisonStrategy.public Comparator<?> getComparator()
public void assertNullOrEmpty(AssertionInfo info, CharSequence actual)
CharSequence is null or empty.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is not null *and* it is not empty.public void assertEmpty(AssertionInfo info, CharSequence actual)
CharSequence is empty.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is null.AssertionError - if the given CharSequence is not empty.public void assertNotEmpty(AssertionInfo info, CharSequence actual)
CharSequence is not empty.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is null.AssertionError - if the given CharSequence is empty.public void assertBlank(AssertionInfo info, CharSequence actual)
CharSequence is Null, empty or consists of one or more whitespace characters.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is not blank.public void assertNotBlank(AssertionInfo info, CharSequence actual)
CharSequence contains at least one non-whitespace character.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is blank.public void assertContainsWhitespaces(AssertionInfo info, CharSequence actual)
CharSequence contains one or more whitespace characters.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence does not contain any whitespace characters.public void assertContainsOnlyWhitespaces(AssertionInfo info, CharSequence actual)
CharSequence consists of one or more whitespace characters.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is not blank.public void assertDoesNotContainAnyWhitespaces(AssertionInfo info, CharSequence actual)
CharSequence is Null, empty or contains only non-whitespace characters.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence contains one or more whitespace characters.public void assertDoesNotContainOnlyWhitespaces(AssertionInfo info, CharSequence actual)
CharSequence is Null, empty or contains at least one non-whitespace character.info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is blank.public void assertJavaBlank(AssertionInfo info, CharSequence actual)
CharSequence consists of one or more whitespace characters
according to Character.isWhitespace(char).info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is not blank.public void assertNotJavaBlank(AssertionInfo info, CharSequence actual)
CharSequence is Null, empty or contains at least one non-whitespace character
according to Character.isWhitespace(char).info - contains information about the assertion.actual - the given CharSequence.AssertionError - if the given CharSequence is blank.public void assertHasSize(AssertionInfo info, CharSequence actual, int expectedSize)
CharSequence is equal to the expected one.info - contains information about the assertion.actual - the given CharSequence.expectedSize - the expected size of actual.AssertionError - if the given CharSequence is null.AssertionError - if the size of the given CharSequence is different than the expected one.public void assertHasSizeLessThan(AssertionInfo info, CharSequence actual, int expectedMaxSizeExcluded)
CharSequence is less than the expected sizeinfo - contains information about the assertion.actual - the given CharSequence.expectedMaxSizeExcluded - the expected max size of actualAssertionError - if the given CharSequence is null.AssertionError - if the size of the given CharSequence is equal to or greater than the expected max sizepublic void assertHasSizeLessThanOrEqualTo(AssertionInfo info, CharSequence actual, int expectedMaxSizeIncluded)
CharSequence is less than or equal to the expected sizeinfo - contains information about the assertion.actual - the given CharSequence.expectedMaxSizeIncluded - the expected max size of actualAssertionError - if the given CharSequence is null.AssertionError - if the size of the given CharSequence is greater than the expected max sizepublic void assertHasSizeGreaterThan(AssertionInfo info, CharSequence actual, int expectedMinSizeExcluded)
CharSequence is greater than the expected sizeinfo - contains information about the assertion.actual - the given CharSequence.expectedMinSizeExcluded - the expected min size of actualAssertionError - if the given CharSequence is null.AssertionError - if the size of the given CharSequence is equal to or less than the expected max sizepublic void assertHasSizeGreaterThanOrEqualTo(AssertionInfo info, CharSequence actual, int expectedMinSizeIncluded)
CharSequence is greater than or equal to the expected sizeinfo - contains information about the assertion.actual - the given CharSequence.expectedMinSizeIncluded - the expected min size of actualAssertionError - if the given CharSequence is null.AssertionError - if the size of the given CharSequence is greater than the expected max sizepublic void assertHasSizeBetween(AssertionInfo info, CharSequence actual, int lowerBoundary, int higherBoundary)
CharSequence is between the given lower and higher boundary (inclusive).info - contains information about the assertion.actual - the given Iterable.lowerBoundary - the lower boundary compared to which actual size should be greater than or equal to.higherBoundary - the higher boundary compared to which actual size should be less than or equal to.AssertionError - if the given array is null.AssertionError - if the number of elements in the given array is not between the boundaries.public void assertHasLineCount(AssertionInfo info, CharSequence actual, int expectedLineCount)
CharSequence is equal to the expected one.info - contains information about the assertion.actual - the given CharSequence.expectedLineCount - the expected line count of actual.AssertionError - if the given CharSequence is null.AssertionError - if the line count of the given CharSequence is different than the expected one.public void assertHasSameSizeAs(AssertionInfo info, CharSequence actual, Iterable<?> other)
CharSequence has the same size as the other
Iterable.info - contains information about the assertion.actual - the given CharSequence.other - the group to compareAssertionError - if the given CharSequence is null.AssertionError - if the given Iterable is null.AssertionError - if the number of entries in the given CharSequence does not have the same size.public void assertHasSameSizeAs(AssertionInfo info, CharSequence actual, Object array)
CharSequence has the same size as the other array.info - contains information about the assertion.actual - the given CharSequence.array - the array to compareAssertionError - if the given CharSequence is null.AssertionError - if the given array is null.AssertionError - if the number of entries in the given CharSequence does not have the same size.public void assertHasSameSizeAs(AssertionInfo info, CharSequence actual, CharSequence other)
public void assertContains(AssertionInfo info, CharSequence actual, CharSequence... values)
CharSequence contains the given strings.info - contains information about the assertion.actual - the actual CharSequence.values - the values to look for.NullPointerException - if the given sequence is null.IllegalArgumentException - if the given values is empty.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not contain the given sequence.public void assertContainsOnlyDigits(AssertionInfo info, CharSequence actual)
CharSequence contains only digits.info - contains information about the assertion.actual - the given CharSequence.NullPointerException - if actual is null.AssertionError - if actual contains non-digit characters or contains no digits at all.public void assertContainsIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence sequence)
CharSequence contains the given sequence, ignoring case considerations.info - contains information about the assertion.actual - the actual CharSequence.sequence - the sequence to search for.NullPointerException - if the given sequence is null.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not contain the given sequence.public void assertDoesNotContain(AssertionInfo info, CharSequence actual, CharSequence... values)
CharSequence does not contain any one of the given values.info - contains information about the assertion.actual - the actual CharSequence.values - the values to search for.NullPointerException - if the given list of values is null.NullPointerException - if any one of the given values is null.IllegalArgumentException - if the list of given values is empty.AssertionError - if the actual CharSequence is null.AssertionError - if the actual CharSequence contains any one of the given values.public void assertEqualsIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are equal, ignoring case considerations.info - contains information about the assertion.actual - the actual CharSequence.expected - the expected CharSequence.AssertionError - if the given CharSequences are not equal.public void assertNotEqualsIgnoringCase(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are not equal, ignoring case considerations.info - contains information about the assertion.actual - the actual CharSequence.expected - the expected CharSequence.AssertionError - if the given CharSequences are equal ignoring case considerations.public void assertIsEqualToNormalizingNewlines(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are not equal, normalizing newlines.info - contains information about the assertion.actual - the actual CharSequence (newlines will be normalized).expected - the expected CharSequence (newlines will be normalized)..AssertionError - if the given CharSequences are equal after normalizing newlines.public void assertEqualsIgnoringWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are equal, ignoring any differences in whitespace.info - contains information about the assertion.actual - the actual CharSequence.expected - the expected CharSequence.AssertionError - if the given CharSequences are not equal.public void assertNotEqualsIgnoringWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are not equal, ignoring any differences in whitespace.info - contains information about the assertion.actual - the actual CharSequence.expected - the expected CharSequence.AssertionError - if the given CharSequences are equal.public void assertEqualsNormalizingWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are equal, after the whitespace of both strings
has been normalized.info - contains information about the assertion.actual - the actual CharSequence.expected - the expected CharSequence.AssertionError - if the given CharSequences are not equal.public void assertNotEqualsNormalizingWhitespace(AssertionInfo info, CharSequence actual, CharSequence expected)
CharSequences are not equal, after the whitespace of both strings
has been normalized.info - contains information about the assertion.actual - the actual CharSequence.expected - the expected CharSequence.AssertionError - if the given CharSequences are equal.public void assertContainsOnlyOnce(AssertionInfo info, CharSequence actual, CharSequence sequence)
CharSequences contains only once the given sequence.info - contains information about the assertion.actual - the actual CharSequence.sequence - the given CharSequence.NullPointerException - if the given sequence is null.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not contains only once the given
CharSequence.public void assertStartsWith(AssertionInfo info, CharSequence actual, CharSequence prefix)
CharSequence starts with the given prefix.info - contains information about the assertion.actual - the actual CharSequence.prefix - the given prefix.NullPointerException - if the given sequence is null.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not start with the given prefix.public void assertDoesNotStartWith(AssertionInfo info, CharSequence actual, CharSequence prefix)
CharSequence does not start with the given prefix.info - contains information about the assertion.actual - the actual CharSequence.prefix - the given prefix.NullPointerException - if the given sequence is null.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence starts with the given prefix.public void assertEndsWith(AssertionInfo info, CharSequence actual, CharSequence suffix)
CharSequence ends with the given suffix.info - contains information about the assertion.actual - the actual CharSequence.suffix - the given suffix.NullPointerException - if the given sequence is null.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not end with the given suffix.public void assertDoesNotEndWith(AssertionInfo info, CharSequence actual, CharSequence suffix)
CharSequence does not end with the given suffix.info - contains information about the assertion.actual - the actual CharSequence.suffix - the given suffix.NullPointerException - if the given sequence is null.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence ends with the given suffix.public void assertMatches(AssertionInfo info, CharSequence actual, CharSequence regex)
CharSequence matches the given regular expression.info - contains information about the assertion.actual - the given CharSequence.regex - the regular expression to which the actual CharSequence is to be matched.NullPointerException - if the given pattern is null.PatternSyntaxException - if the regular expression's syntax is invalid.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not match the given regular expression.public void assertDoesNotMatch(AssertionInfo info, CharSequence actual, CharSequence regex)
CharSequence does not match the given regular expression.info - contains information about the assertion.actual - the given CharSequence.regex - the regular expression to which the actual CharSequence is to be matched.NullPointerException - if the given pattern is null.PatternSyntaxException - if the regular expression's syntax is invalid.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence matches the given regular expression.public void assertMatches(AssertionInfo info, CharSequence actual, Pattern pattern)
CharSequence matches the given regular expression.info - contains information about the assertion.actual - the given CharSequence.pattern - the regular expression to which the actual CharSequence is to be matched.NullPointerException - if the given pattern is null.AssertionError - if the given CharSequence is null.AssertionError - if the given CharSequence does not match the given regular expression.public void assertDoesNotMatch(AssertionInfo info, CharSequence actual, Pattern pattern)
CharSequence does not match the given regular expression.info - contains information about the assertion.actual - the given CharSequence.pattern - the regular expression to which the actual CharSequence is to be matched.NullPointerException - if the given pattern is null.AssertionError - if the given CharSequence matches the given regular expression.public void assertContainsSequence(AssertionInfo info, CharSequence actual, CharSequence[] sequence)
info - contains information about the assertion.actual - the given charSequence.sequence - the sequence of charSequence to look for.NullPointerException - if the given sequence of charSequence is null.IllegalArgumentException - if the given sequence of charSequence is empty.AssertionError - if the given CharSequence is null.AssertionError - if the given CharSequence does not contain the given sequence of charSequence.public void assertContainsSubsequence(AssertionInfo info, CharSequence actual, CharSequence[] subsequence)
CharSequence contains all the given values in the given order
(possibly with other values between them).info - contains information about the assertion.actual - the given CharSequence.subsequence - the Strings to look for, in order.AssertionError - if the given CharSequence is null.NullPointerException - if the given subsequence is null.IllegalArgumentException - if the given subsequence is empty.AssertionError - if the given CharSequence does not contain the given subsequence of charSequence.public void assertXmlEqualsTo(AssertionInfo info, CharSequence actualXml, CharSequence expectedXml)
public void assertIsSubstringOf(AssertionInfo info, CharSequence actual, CharSequence sequence)
public void assertContainsPattern(AssertionInfo info, CharSequence actual, CharSequence regex)
CharSequence contains the given regular expression.info - contains information about the assertion.actual - the given CharSequence.regex - the regular expression to find in the actual CharSequence.NullPointerException - if the given pattern is null.PatternSyntaxException - if the regular expression's syntax is invalid.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence does not contain the given regular expression.public void assertContainsPattern(AssertionInfo info, CharSequence actual, Pattern pattern)
CharSequence contains the given regular expression.info - contains information about the assertion.actual - the given CharSequence.pattern - the regular expression to find in the actual CharSequence.NullPointerException - if the given pattern is null.AssertionError - if the given CharSequence is null.AssertionError - if the given CharSequence does not contain the given regular expression.public void assertDoesNotContainPattern(AssertionInfo info, CharSequence actual, CharSequence regex)
CharSequence does not contain the given regular expression.info - contains information about the assertion.actual - the given CharSequence.regex - the regular expression to find in the actual CharSequence.NullPointerException - if the given pattern is null.PatternSyntaxException - if the regular expression's syntax is invalid.AssertionError - if the given CharSequence is null.AssertionError - if the actual CharSequence contains the given regular expression.public void assertDoesNotContainPattern(AssertionInfo info, CharSequence actual, Pattern pattern)
CharSequence does not contain the given regular expression.info - contains information about the assertion.actual - the given CharSequence.pattern - the regular expression to find in the actual CharSequence.NullPointerException - if the given pattern is null.AssertionError - if the given CharSequence is null.AssertionError - if the given CharSequence contains the given regular expression.public void assertIsEqualToIgnoringNewLines(AssertionInfo info, CharSequence actual, CharSequence expected)
info - contains information about the assertion.actual - the actual CharSequence (new lines will be ignored).expected - the expected CharSequence (new lines will be ignored).public void assertLowerCase(AssertionInfo info, CharSequence actual)
public void assertUpperCase(AssertionInfo info, CharSequence actual)
Copyright © 2014–2019 AssertJ. All rights reserved.