Class DynamicFileAssert<A extends DynamicFileAssert<A,F>,F extends DynamicFile>
java.lang.Object
org.assertj.core.api.AbstractAssert<A,F>
org.springframework.core.test.tools.DynamicFileAssert<A,F>
- Type Parameters:
A
- the assertion typeF
- the file type
- All Implemented Interfaces:
org.assertj.core.api.Assert<A,
,F> org.assertj.core.api.Descriptable<A>
,org.assertj.core.api.ExtensionPoints<A,
F>
- Direct Known Subclasses:
ResourceFileAssert
,SourceFileAssert
public class DynamicFileAssert<A extends DynamicFileAssert<A,F>,F extends DynamicFile>
extends org.assertj.core.api.AbstractAssert<A,F>
Assertion methods for
DynamicFile
instances.- Since:
- 6.0
- Author:
- Phillip Webb, Stephane Nicoll
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Method Summary
Modifier and TypeMethodDescriptioncontains
(CharSequence... values) Verify that the actual content contains all the given values.doesNotContain
(CharSequence... values) Verify that the actual content does not contain any of the given values.hasContent
(CharSequence content) Verify that the actual content is equal to the given one.Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, 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, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, as, as, describedAs
-
Method Details
-
hasContent
Verify that the actual content is equal to the given one.- Parameters:
content
- the expected content of the file- Returns:
this
, to facilitate method chaining
-
contains
Verify that the actual content contains all the given values.- Parameters:
values
- the values to look for- Returns:
this
, to facilitate method chaining
-
doesNotContain
Verify that the actual content does not contain any of the given values.- Parameters:
values
- the values to look for- Returns:
this
, to facilitate method chaining
-