SELF - the type of the concrete assert implementationspublic abstract class AbstractJvmModuleAssert<SELF extends AbstractJvmModuleAssert<SELF>> extends AbstractProjectAssert<SELF>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJvmModuleAssert(Path projectDirectory,
Language language,
Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
SELF |
hasMainPackage(String packageName)
Assert that the main source defines the specified package.
|
SELF |
hasMainResource(String resourcePath)
Assert that the main resources defines the specified resource.
|
SELF |
hasMainSource(String packageName,
String name)
Assert that the main source defines the specified type.
|
SELF |
hasTestPackage(String packageName)
Assert that the test source defines the specified package.
|
SELF |
hasTestSource(String packageName,
String name)
Assert that the test source defines the specified type.
|
TextAssert |
mainSource(String packageName,
String name)
Assert that the main source defines the specified type and return an
assert for it, to allow chaining of text-specific assertions
from this call. |
TextAssert |
testSource(String packageName,
String name)
Assert that the test source defines the specified type and return an
assert for it, to allow chaining of text-specific assertions
from this call. |
containsDirectories, containsFiles, doesNotContainDirectories, doesNotContainFiles, file, filePaths, textFiledoesNotExist, endsWith, endsWithRaw, exists, existsNoFollowLinks, hasBinaryContent, hasContent, hasDigest, hasDigest, hasDigest, hasDigest, hasFileName, hasNoParent, hasNoParentRaw, hasParent, hasParentRaw, hasSameBinaryContentAs, hasSameContentAs, hasSameContentAs, hasSameTextualContentAs, hasSameTextualContentAs, isAbsolute, isCanonical, isDirectory, isDirectoryContaining, isDirectoryContaining, isDirectoryNotContaining, isDirectoryNotContaining, isDirectoryRecursivelyContaining, isDirectoryRecursivelyContaining, isEmptyDirectory, isEmptyFile, isExecutable, isNormalized, isNotEmptyDirectory, isNotEmptyFile, 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, extracting, extracting, extracting, getComparatorsByType, hasAllNullFieldsOrProperties, hasAllNullFieldsOrPropertiesExcept, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, hasOnlyFields, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparisonasInstanceOf, 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, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, withFailMessage, withFailMessage, withRepresentation, withThreadDumpOnErrorpublic SELF hasMainPackage(String packageName)
packageName - the name of the packagethis assertion objectpublic SELF hasMainSource(String packageName, String name)
packageName - the name of a packagename - the name of the typethis assertion objectpublic TextAssert mainSource(String packageName, String name)
assert for it, to allow chaining of text-specific assertions
from this call.packageName - the name of a packagename - the name of the typeTextAssert for the specified sourcepublic SELF hasMainResource(String resourcePath)
resourcePath - the path of a resource relative to the resources
directorythis assertion objectpublic SELF hasTestPackage(String packageName)
packageName - the name of the packagethis assertion objectpublic SELF hasTestSource(String packageName, String name)
packageName - the name of a packagename - the name of the typethis assertion objectpublic TextAssert testSource(String packageName, String name)
assert for it, to allow chaining of text-specific assertions
from this call.packageName - the name of a packagename - the name of the typeTextAssert for the specified sourceCopyright © 2021 Pivotal Software, Inc.. All rights reserved.