SELF
- the type of the concrete assert implementationspublic abstract class AbstractProjectAssert<SELF extends AbstractProjectAssert<SELF>>
extends org.assertj.core.api.AbstractPathAssert<SELF>
Modifier | Constructor and Description |
---|---|
protected |
AbstractProjectAssert(Path projectDirectory,
Class<?> selfType) |
Modifier and Type | Method and Description |
---|---|
SELF |
containsDirectories(String... directoryPaths)
Assert the project has the specified directories.
|
SELF |
containsFiles(String... filePaths)
Assert the project has the specified files.
|
SELF |
doesNotContainDirectories(String... directoryPaths)
Assert the project does not have the specified directories.
|
SELF |
doesNotContainFiles(String... filePaths)
Assert the project does not have the specified files.
|
org.assertj.core.api.PathAssert |
file(String path)
Assert that the project defines the specified file and return a
PathAssert
for it, to allow chaining of Path-specific assertions from this call. |
org.assertj.core.api.ListAssert<String> |
filePaths()
Return an
assert for the local file paths of this project, to
allow chaining of list-specific assertions from this call. |
TextAssert |
textFile(String path)
Assert that the project defines the specified file and return a
TextAssert
for it, to allow chaining of text file-specific assertions from this call. |
content, content, doesNotExist, endsWith, endsWithRaw, exists, existsNoFollowLinks, hasBinaryContent, hasContent, hasDigest, hasDigest, hasDigest, hasDigest, hasExtension, hasFileName, hasNoExtension, hasNoParent, hasNoParentRaw, hasParent, hasParentRaw, hasSameBinaryContentAs, hasSameContentAs, hasSameContentAs, hasSameTextualContentAs, hasSameTextualContentAs, hasSize, isAbsolute, isCanonical, isDirectory, isDirectoryContaining, isDirectoryContaining, isDirectoryNotContaining, isDirectoryNotContaining, isDirectoryRecursivelyContaining, isDirectoryRecursivelyContaining, isEmptyDirectory, isEmptyFile, isExecutable, isNormalized, isNotEmptyDirectory, isNotEmptyFile, isReadable, isRegularFile, isRelative, isSymbolicLink, isWritable, startsWith, startsWithRaw, usingCharset, usingCharset
inBinary, inHexadecimal, isBetween, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparator
as, as, doesNotReturn, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparison
asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnError
public SELF containsDirectories(String... directoryPaths)
directoryPaths
- the directories relative to the project directory.this
assertion objectpublic SELF doesNotContainDirectories(String... directoryPaths)
directoryPaths
- the directory paths relative to the project directory.this
assertion objectpublic SELF containsFiles(String... filePaths)
filePaths
- the file paths relative to the project directory.this
assertion objectpublic SELF doesNotContainFiles(String... filePaths)
filePaths
- the file paths relative to the project directory.this
assertion objectpublic org.assertj.core.api.ListAssert<String> filePaths()
assert
for the local file paths of this project, to
allow chaining of list-specific assertions from this call.ListAssert
with the files of this projectpublic org.assertj.core.api.PathAssert file(String path)
PathAssert
for it, to allow chaining of Path-specific assertions from this call.path
- the path of the filePathAssert
for the specified filepublic TextAssert textFile(String path)
TextAssert
for it, to allow chaining of text file-specific assertions from this call.path
- the path of a text fileTextAssert
for the specified text fileCopyright © 2022 Pivotal Software, Inc.. All rights reserved.