SELF - the type of the concrete assert implementationspublic abstract class AbstractTextAssert<SELF extends org.assertj.core.api.AbstractStringAssert<SELF>>
extends org.assertj.core.api.AbstractStringAssert<SELF>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTextAssert(Path textFile,
Class<?> selfType) |
protected |
AbstractTextAssert(String actual,
Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
SELF |
containsExactly(String... lines)
Assert this text contains exactly the specified lines.
|
SELF |
hasSameContentAs(org.springframework.core.io.Resource expected)
Assert this text has the same content as the content defined by the specified
Resource. |
org.assertj.core.api.ListAssert<String> |
lines()
Return an
assert for the lines that constitute this text, to
allow chaining of lines-specific assertions from this call. |
decodedAsBase64, isBase64, isBetween, isEqualTo, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparatorcontains, contains, containsAnyOf, containsIgnoringCase, containsIgnoringWhitespaces, containsOnlyDigits, containsOnlyOnce, containsOnlyWhitespaces, containsPattern, containsPattern, containsSequence, containsSequence, containsSubsequence, containsSubsequence, containsWhitespaces, doesNotContain, doesNotContain, doesNotContainAnyWhitespaces, doesNotContainIgnoringCase, doesNotContainOnlyWhitespaces, doesNotContainPattern, doesNotContainPattern, doesNotEndWith, doesNotMatch, doesNotMatch, doesNotStartWith, endsWith, hasLineCount, hasSameSizeAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, inHexadecimal, inUnicode, isBlank, isEmpty, isEqualToIgnoringCase, isEqualToIgnoringNewLines, isEqualToIgnoringWhitespace, isEqualToNormalizingNewlines, isEqualToNormalizingPunctuationAndWhitespace, isEqualToNormalizingUnicode, isEqualToNormalizingWhitespace, isJavaBlank, isLowerCase, isMixedCase, isNotBlank, isNotEmpty, isNotEqualToIgnoringCase, isNotEqualToIgnoringWhitespace, isNotEqualToNormalizingWhitespace, isNotJavaBlank, isNullOrEmpty, isSubstringOf, isUpperCase, isXmlEqualTo, isXmlEqualToContentOf, matches, matches, startsWith, usingDefaultElementComparator, usingElementComparatorasInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic SELF hasSameContentAs(org.springframework.core.io.Resource expected)
Resource. Differences in newlines are ignoredexpected - a resource with the expected contentthis assertion objectAbstractCharSequenceAssert.isEqualToIgnoringNewLines(CharSequence)public SELF containsExactly(String... lines)
lines - the lines that constitute the content of this textthis assertion objectpublic org.assertj.core.api.ListAssert<String> lines()
assert for the lines that constitute this text, to
allow chaining of lines-specific assertions from this call.ListAssert for the lines that constitutes this textCopyright © 2022 Pivotal Software, Inc.. All rights reserved.