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. |
doesNotExist, endsWith, endsWithRaw, exists, existsNoFollowLinks, hasBinaryContent, hasContent, hasDigest, hasDigest, hasDigest, hasDigest, hasFileName, hasNoParent, hasNoParentRaw, hasParent, hasParentRaw, hasSameContentAs, hasSameContentAs, isAbsolute, isCanonical, isDirectory, isExecutable, isNormalized, isReadable, isRegularFile, isRelative, isSymbolicLink, isWritable, startsWith, startsWithRaw, usingCharset, usingCharsetinBinary, inHexadecimal, isBetween, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparatoras, as, extracting, extracting, extracting, getComparatorsByType, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForTypeasList, asString, describedAs, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, setCustomRepresentation, throwAssertionError, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic 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 © 2019 Pivotal Software, Inc.. All rights reserved.