Package org.assertj.core.api
Class StringAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
-
- org.assertj.core.api.AbstractCharSequenceAssert<StringAssert,String>
-
- org.assertj.core.api.StringAssert
-
- All Implemented Interfaces:
Assert<StringAssert,String>
,Descriptable<StringAssert>
,EnumerableAssert<StringAssert,Character>
,ExtensionPoints<StringAssert,String>
public class StringAssert extends AbstractCharSequenceAssert<StringAssert,String>
Assertion methods forString
s.To create a new instance of this class, invoke
This class has been defined so that, when calling
.Assertions.assertThat(String)
AbstractCharSequenceAssert.usingComparator(java.util.Comparator)
, one provide a String comparator instead of aCharSequence
comparator.- Author:
- Mikhail Mazursky
-
-
Field Summary
-
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself
-
-
Constructor Summary
Constructors Constructor Description StringAssert(String actual)
-
Method Summary
-
Methods inherited from class org.assertj.core.api.AbstractCharSequenceAssert
contains, contains, containsIgnoringCase, containsOnlyDigits, containsOnlyOnce, containsPattern, containsPattern, containsSequence, containsSequence, doesNotContain, doesNotContainPattern, doesNotContainPattern, doesNotEndWith, doesNotMatch, doesNotMatch, doesNotStartWith, endsWith, hasLineCount, hasSameSizeAs, hasSameSizeAs, hasSameSizeAs, hasSize, inHexadecimal, inUnicode, isBlank, isEmpty, isEqualToIgnoringCase, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingWhitespace, isJavaBlank, isNotBlank, isNotEmpty, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isNotJavaBlank, isNullOrEmpty, isSubstringOf, isXmlEqualTo, isXmlEqualToContentOf, matches, matches, startsWith, usingComparator, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator
-
Methods inherited from class org.assertj.core.api.AbstractAssert
as, as, asList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasToString, inBinary, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, overridingErrorMessage, satisfies, setCustomRepresentation, throwAssertionError, withFailMessage, withRepresentation, withThreadDumpOnError
-
-
-
-
Constructor Detail
-
StringAssert
public StringAssert(String actual)
-
-