Class AbstractProjectAssert<SELF extends AbstractProjectAssert<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>
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:
AbstractJvmModuleAssert, AbstractModuleAssert

public abstract class AbstractProjectAssert<SELF extends AbstractProjectAssert<SELF>> extends org.assertj.core.api.AbstractPathAssert<SELF>
Base class for project 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
    AbstractProjectAssert(Path projectDirectory, Class<?> selfType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    containsDirectories(String... directoryPaths)
    Assert the project has the specified directories.
    containsFiles(String... filePaths)
    Assert the project has the specified files.
    doesNotContainDirectories(String... directoryPaths)
    Assert the project does not have the specified directories.
    Assert the project does not have the specified files.
    org.assertj.core.api.PathAssert
    file(String path)
    Assert that the project defines the specified file and return a PathAssert for it, to allow chaining of Path-specific assertions from this call.
    org.assertj.core.api.ListAssert<String>
    Return an assert for the local file paths of this project, to allow chaining of list-specific assertions from this call.
    Assert that the project defines the specified file and return a TextAssert for it, to allow chaining of text file-specific assertions from this call.

    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

    • AbstractProjectAssert

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

    • containsDirectories

      public SELF containsDirectories(String... directoryPaths)
      Assert the project has the specified directories.
      Parameters:
      directoryPaths - the directories relative to the project directory.
      Returns:
      this assertion object
    • doesNotContainDirectories

      public SELF doesNotContainDirectories(String... directoryPaths)
      Assert the project does not have the specified directories.
      Parameters:
      directoryPaths - the directory paths relative to the project directory.
      Returns:
      this assertion object
    • containsFiles

      public SELF containsFiles(String... filePaths)
      Assert the project has the specified files.
      Parameters:
      filePaths - the file paths relative to the project directory.
      Returns:
      this assertion object
    • doesNotContainFiles

      public SELF doesNotContainFiles(String... filePaths)
      Assert the project does not have the specified files.
      Parameters:
      filePaths - the file paths relative to the project directory.
      Returns:
      this assertion object
    • filePaths

      public org.assertj.core.api.ListAssert<String> filePaths()
      Return an assert for the local file paths of this project, to allow chaining of list-specific assertions from this call.
      Returns:
      a ListAssert with the files of this project
    • file

      public org.assertj.core.api.PathAssert file(String path)
      Assert that the project defines the specified file and return a PathAssert for it, to allow chaining of Path-specific assertions from this call.
      Parameters:
      path - the path of the file
      Returns:
      a PathAssert for the specified file
    • textFile

      public TextAssert textFile(String path)
      Assert that the project defines the specified file and return a TextAssert for it, to allow chaining of text file-specific assertions from this call.
      Parameters:
      path - the path of a text file
      Returns:
      a TextAssert for the specified text file