Package | Description |
---|---|
org.fest.assertions.api |
Modifier and Type | Method and Description |
---|---|
static StringAssert |
Assertions.assertThat(String actual)
Creates a new instance of
. |
StringAssert |
StringAssert.contains(String sequence)
Verifies that the actual
String contains the given sequence. |
StringAssert |
StringAssert.containsIgnoringCase(String sequence)
Verifies that the actual
String contains the given sequence, ignoring case considerations. |
StringAssert |
StringAssert.containsOnlyOnce(String sequence)
Verifies that the actual
String contains only once the given sequence. |
StringAssert |
StringAssert.doesNotContain(String sequence)
Verifies that the actual
String does not contain the given sequence. |
StringAssert |
StringAssert.doesNotMatch(Pattern pattern)
Verifies that the actual
String does not match the given regular expression. |
StringAssert |
StringAssert.doesNotMatch(String regex)
Verifies that the actual
String does not match the given regular expression. |
StringAssert |
StringAssert.endsWith(String suffix)
Verifies that the actual
String ends with the given suffix. |
StringAssert |
StringAssert.hasSameSizeAs(Iterable<?> other)
Verifies that the actual group has the same size as given
Iterable . |
StringAssert |
StringAssert.hasSameSizeAs(Object[] other)
Verifies that the actual group has the same size as given array.
|
StringAssert |
StringAssert.hasSize(int expected)
Verifies that the number of values in the actual group is equal to the given one.
|
StringAssert |
StringAssert.isEqualToIgnoringCase(String expected)
Verifies that the actual
String is equal to the given one, ignoring case considerations. |
StringAssert |
StringAssert.isNotEmpty()
Verifies that the actual group of values is not empty.
|
StringAssert |
StringAssert.matches(Pattern pattern)
Verifies that the actual
String matches the given regular expression. |
StringAssert |
StringAssert.matches(String regex)
Verifies that the actual
String matches the given regular expression. |
StringAssert |
StringAssert.startsWith(String prefix)
Verifies that the actual
String starts with the given prefix. |
StringAssert |
StringAssert.usingComparator(Comparator<? super String> customComparator) |
StringAssert |
StringAssert.usingDefaultComparator() |
StringAssert |
StringAssert.usingDefaultElementComparator()
Revert to standard comparison for incoming assertion group element checks.
|
StringAssert |
StringAssert.usingElementComparator(Comparator<? super String> customComparator)
Use given custom comparator instead of relying on actual type A
equals method to compare group elements for
incoming assertion checks. |
Copyright © 2007–2015. All rights reserved.