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

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractModuleAssert(Path projectDirectory, Class<?> selfType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Return a JVM module assertion for the specified Language, to allow chaining of jvm module-specific assertions from this call.
    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.
    Assert the module defines the Gradle wrapper.
    Assert the module defines a build.gradle.
    Assert the module defines a build.gradle.kts.
    Assert the module defines a pom.xml.
    Assert the module defines the Maven wrapper.
    Assert this module has a build.gradle.kts and return an assert for the build.gradle.kts file of this module, to allow chaining of gradle-specific assertions from this call.
    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.

    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

      protected AbstractModuleAssert(Path projectDirectory, Class<?> selfType)
  • Method Details

    • asJvmModule

      public JvmModuleAssert asJvmModule(Language language)
      Return a 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.

      Parameters:
      language - the language of the module
      Returns:
      a JvmModuleAssert for the specified language
    • hasMavenBuild

      public SELF hasMavenBuild()
      Assert the module defines a pom.xml.
      Returns:
      this assertion object
    • hasMavenWrapper

      public SELF hasMavenWrapper()
      Assert the module defines the Maven wrapper.
      Returns:
      this assertion object
    • mavenBuild

      public 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.
      Returns:
      a MavenBuildAssert
    • hasGroovyDslGradleBuild

      public SELF hasGroovyDslGradleBuild()
      Assert the module defines a build.gradle.
      Returns:
      this assertion object
    • hasGradleWrapper

      public SELF hasGradleWrapper()
      Assert the module defines the Gradle wrapper.
      Returns:
      this assertion object
    • groovyDslGradleBuild

      public 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.
      Returns:
      a GroovyDslGradleBuildAssert
    • hasKotlinDslGradleBuild

      public SELF hasKotlinDslGradleBuild()
      Assert the module defines a build.gradle.kts.
      Returns:
      this assertion object
    • kotlinDslGradleBuild

      public KotlinDslGradleBuildAssert kotlinDslGradleBuild()
      Assert this module has a build.gradle.kts and return an assert for the build.gradle.kts file of this module, to allow chaining of gradle-specific assertions from this call.
      Returns:
      a KotlinDslGradleBuildAssert