Uses of Class
org.fest.assertions.api.StringAssert
Packages that use StringAssert
-
Uses of StringAssert in org.fest.assertions.api
Methods in org.fest.assertions.api that return StringAssertModifier and TypeMethodDescriptionstatic StringAssert
Assertions.assertThat
(String actual) Creates a new instance of
.StringAssert
Verifies that the actualString
contains the given sequence.StringAssert.containsIgnoringCase
(String sequence) Verifies that the actualString
contains the given sequence, ignoring case considerations.StringAssert.containsOnlyOnce
(String sequence) Verifies that the actualString
contains only once the given sequence.StringAssert.doesNotContain
(String sequence) Verifies that the actualString
does not contain the given sequence.StringAssert.doesNotMatch
(String regex) Verifies that the actualString
does not match the given regular expression.StringAssert.doesNotMatch
(Pattern pattern) Verifies that the actualString
does not match the given regular expression.Verifies that the actualString
ends with the given suffix.StringAssert.hasSameSizeAs
(Iterable<?> other) Verifies that the actual group has the same size as givenIterable
.StringAssert.hasSameSizeAs
(Object[] other) Verifies that the actual group has the same size as given array.StringAssert.hasSize
(int expected) Verifies that the number of values in the actual group is equal to the given one.StringAssert.isEqualToIgnoringCase
(String expected) Verifies that the actualString
is equal to the given one, ignoring case considerations.StringAssert.isNotEmpty()
Verifies that the actual group of values is not empty.Verifies that the actualString
matches the given regular expression.Verifies that the actualString
matches the given regular expression.StringAssert.startsWith
(String prefix) Verifies that the actualString
starts with the given prefix.StringAssert.usingComparator
(Comparator<? super String> customComparator) StringAssert.usingDefaultComparator()
StringAssert.usingDefaultElementComparator()
Revert to standard comparison for incoming assertion group element checks.StringAssert.usingElementComparator
(Comparator<? super String> customComparator) Use given custom comparator instead of relying on actual type Aequals
method to compare group elements for incoming assertion checks.