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, textFile
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, usingCharset
inBinary, inHexadecimal, isBetween, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparator
as, as, extracting, extracting, extracting, getComparatorsByType, hasFieldOrProperty, hasFieldOrPropertyWithValue, hasNoNullFieldsOrProperties, hasNoNullFieldsOrPropertiesExcept, isEqualToComparingFieldByField, isEqualToComparingFieldByFieldRecursively, isEqualToComparingOnlyGivenFields, isEqualToIgnoringGivenFields, isEqualToIgnoringNullFields, newObjectAssert, returns, usingComparatorForFields, usingComparatorForType
asList, 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, withThreadDumpOnError
public 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.MavenBuildAssert
public 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.GroovyDslGradleBuildAssert
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.