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
pathsFields inherited from class org.assertj.core.api.AbstractAssert
actual, info, myself, objects, throwUnsupportedExceptionOnEquals -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractModuleAssert(Path projectDirectory, Class<?> selfType) -
Method Summary
Modifier and TypeMethodDescriptionasJvmModule(Language language) Return aJVM moduleassertion for the specifiedLanguage, to allow chaining of jvm module-specific assertions from this call.Assert this module has abuild.gradleand return anassertfor thebuild.gradlefile 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.ktsand return anassertfor thebuild.gradle.ktsfile of this module, to allow chaining of gradle-specific assertions from this call.Assert this module has apom.xmland return anassertfor thepom.xmlfile 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, textFileMethods 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, usingCharsetMethods inherited from class org.assertj.core.api.AbstractComparableAssert
inBinary, inHexadecimal, isBetween, isEqualByComparingTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isNotEqualByComparingTo, isStrictlyBetween, usingComparator, usingComparator, usingDefaultComparatorMethods 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, usingRecursiveComparisonMethods 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, withThreadDumpOnErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.assertj.core.api.Descriptable
as, describedAs, describedAs
-
Constructor Details
-
AbstractModuleAssert
-
-
Method Details
-
asJvmModule
Return aJVM moduleassertion 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
JvmModuleAssertfor the specified language
-
hasMavenBuild
Assert the module defines apom.xml.- Returns:
thisassertion object
-
hasMavenWrapper
Assert the module defines the Maven wrapper.- Returns:
thisassertion object
-
mavenBuild
Assert this module has apom.xmland return anassertfor thepom.xmlfile of this module, to allow chaining of maven-specific assertions from this call.- Returns:
- a
MavenBuildAssert
-
hasGroovyDslGradleBuild
Assert the module defines abuild.gradle.- Returns:
thisassertion object
-
hasGradleWrapper
Assert the module defines the Gradle wrapper.- Returns:
thisassertion object
-
groovyDslGradleBuild
Assert this module has abuild.gradleand return anassertfor thebuild.gradlefile 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:
thisassertion object
-
kotlinDslGradleBuild
Assert this module has abuild.gradle.ktsand return anassertfor thebuild.gradle.ktsfile of this module, to allow chaining of gradle-specific assertions from this call.- Returns:
- a
KotlinDslGradleBuildAssert
-