Class AbstractModuleAssert<SELF extends AbstractModuleAssert<SELF>>
java.lang.Object
org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractObjectAssert<SELF,ACTUAL>
org.assertj.core.api.AbstractComparableAssert<SELF,Path>
org.assertj.core.api.AbstractPathAssert<SELF>
io.spring.initializr.generator.test.project.AbstractProjectAssert<SELF>
io.spring.initializr.generator.test.project.AbstractModuleAssert<SELF>
- Type Parameters:
SELF
- the type of the concrete assert implementations
- All Implemented Interfaces:
org.assertj.core.api.Assert<SELF,
,Path> org.assertj.core.api.ComparableAssert<SELF,
,Path> org.assertj.core.api.Descriptable<SELF>
,org.assertj.core.api.ExtensionPoints<SELF,
Path>
- Direct Known Subclasses:
ModuleAssert
public abstract class AbstractModuleAssert<SELF extends AbstractModuleAssert<SELF>>
extends AbstractProjectAssert<SELF>
Base class for module assertions.
- Author:
- Stephane Nicoll
-
Field Summary
Fields inherited from class org.assertj.core.api.AbstractPathAssert
paths
Fields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractModuleAssert
(Path projectDirectory, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionasJvmModule
(Language language) Return aJVM module
assertion for the specifiedLanguage
, to allow chaining of jvm module-specific assertions from this call.Assert this module has abuild.gradle
and return anassert
for thebuild.gradle
file of this module, to allow chaining of gradle-specific assertions from this call.Assert the module defines the Gradle wrapper.Assert the module defines abuild.gradle
.Assert the module defines abuild.gradle.kts
.Assert the module defines apom.xml
.Assert the module defines the Maven wrapper.Assert this module has abuild.gradle.kts
and return anassert
for thebuild.gradle.kts
file of this module, to allow chaining of gradle-specific assertions from this call.Assert this module has apom.xml
and return anassert
for thepom.xml
file of this module, to allow chaining of maven-specific assertions from this call.Methods inherited from class io.spring.initializr.generator.test.project.AbstractProjectAssert
containsDirectories, containsFiles, doesNotContainDirectories, doesNotContainFiles, file, filePaths, textFile
Methods inherited from class org.assertj.core.api.AbstractPathAssert
binaryContent, content, content, doesNotExist, endsWith, endsWithRaw, exists, existsNoFollowLinks, hasBinaryContent, hasContent, hasDigest, hasDigest, hasDigest, hasDigest, hasExtension, hasFileName, hasFileSystem, hasNoExtension, hasNoParent, hasNoParentRaw, hasParent, hasParentRaw, hasSameBinaryContentAs, hasSameContentAs, hasSameContentAs, hasSameFileSystemAs, 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
Methods inherited from class org.assertj.core.api.AbstractComparableAssert
inBinary, inHexadecimal, isBetween, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparator
Methods inherited from class org.assertj.core.api.AbstractObjectAssert
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, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison
Methods inherited from class org.assertj.core.api.AbstractAssert
areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, 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
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.assertj.core.api.Descriptable
as, describedAs, describedAs
-
Constructor Details
-
AbstractModuleAssert
-
-
Method Details
-
asJvmModule
Return aJVM module
assertion for the specifiedLanguage
, to allow chaining of jvm module-specific assertions from this call.Does not validate that the module has source code for the specified language.
- Parameters:
language
- the language of the module- Returns:
- a
JvmModuleAssert
for the specified language
-
hasMavenBuild
Assert the module defines apom.xml
.- Returns:
this
assertion object
-
hasMavenWrapper
Assert the module defines the Maven wrapper.- Returns:
this
assertion object
-
mavenBuild
Assert this module has apom.xml
and return anassert
for thepom.xml
file of this module, to allow chaining of maven-specific assertions from this call.- Returns:
- a
MavenBuildAssert
-
hasGroovyDslGradleBuild
Assert the module defines abuild.gradle
.- Returns:
this
assertion object
-
hasGradleWrapper
Assert the module defines the Gradle wrapper.- Returns:
this
assertion object
-
groovyDslGradleBuild
Assert this module has abuild.gradle
and return anassert
for thebuild.gradle
file of this module, to allow chaining of gradle-specific assertions from this call.- Returns:
- a
GroovyDslGradleBuildAssert
-
hasKotlinDslGradleBuild
Assert the module defines abuild.gradle.kts
.- Returns:
this
assertion object
-
kotlinDslGradleBuild
Assert this module has abuild.gradle.kts
and return anassert
for thebuild.gradle.kts
file of this module, to allow chaining of gradle-specific assertions from this call.- Returns:
- a
KotlinDslGradleBuildAssert
-