Class ProjectStructure

java.lang.Object
io.spring.initializr.generator.test.project.ProjectStructure
All Implemented Interfaces:
org.assertj.core.api.AssertProvider<ModuleAssert>

public final class ProjectStructure extends Object implements org.assertj.core.api.AssertProvider<ModuleAssert>
Represent a generated project structure and act as an entry point for AssertJ assertions.
Author:
Stephane Nicoll
  • Constructor Details

    • ProjectStructure

      public ProjectStructure(Path projectDirectory)
      Create an instance based on the specified project directory.
      Parameters:
      projectDirectory - the project's root directory
  • Method Details

    • assertThat

      public ModuleAssert assertThat()
      Specified by:
      assertThat in interface org.assertj.core.api.AssertProvider<ModuleAssert>
    • getProjectDirectory

      public Path getProjectDirectory()
      Return the project directory.
      Returns:
      the project directory
    • resolveModule

      public ProjectStructure resolveModule(String name)
      Resolve a ProjectStructure based on the specified module name.
      Parameters:
      name - the name of a sub-directory of the current project
      Returns:
      a new ProjectStructure for the sub-directory