SELF - the type of the concrete assert implementationspublic abstract class AbstractModuleAssert<SELF extends AbstractModuleAssert<SELF>> extends AbstractProjectAssert<SELF>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractModuleAssert(Path projectDirectory,
Class<?> selfType) |
| Modifier and Type | Method and Description |
|---|---|
JvmModuleAssert |
asJvmModule(Language language)
Return a
JVM module assertion for the specified
Language, to allow chaining of jvm module-specific assertions from this
call. |
GroovyDslGradleBuildAssert |
groovyDslGradleBuild()
Assert this module has a
build.gradle and return an
assert for the build.gradle file of this
module, to allow chaining of gradle-specific assertions from this call. |
SELF |
hasGradleWrapper()
Assert the module defines the Gradle wrapper.
|
SELF |
hasGroovyDslGradleBuild()
Assert the module defines a
build.gradle. |
SELF |
hasMavenBuild()
Assert the module defines a
pom.xml. |
SELF |
hasMavenWrapper()
Assert the module defines the Maven wrapper.
|
MavenBuildAssert |
mavenBuild()
Assert this module has a
pom.xml and return an assert for the pom.xml file of this module, to allow chaining of
maven-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, isExecutable, isNormalized, isNotEmptyDirectory, 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, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType, usingRecursiveComparison, usingRecursiveComparisonasInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, 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 JvmModuleAssert asJvmModule(Language language)
JVM module assertion for the specified
Language, to allow chaining of jvm module-specific assertions from this
call.
Does not validate that the module has source code for the specified language.
language - the language of the moduleJvmModuleAssert for the specified languagepublic SELF hasMavenBuild()
pom.xml.this assertion objectpublic SELF hasMavenWrapper()
this assertion objectpublic MavenBuildAssert mavenBuild()
pom.xml and return an assert for the pom.xml file of this module, to allow chaining of
maven-specific assertions from this call.MavenBuildAssertpublic SELF hasGroovyDslGradleBuild()
build.gradle.this assertion objectpublic SELF hasGradleWrapper()
this assertion objectpublic GroovyDslGradleBuildAssert groovyDslGradleBuild()
build.gradle and return an
assert for the build.gradle file of this
module, to allow chaining of gradle-specific assertions from this call.GroovyDslGradleBuildAssertCopyright © 2021 Pivotal Software, Inc.. All rights reserved.