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 Summary
ConstructorsConstructorDescriptionProjectStructure
(Path projectDirectory) Create an instance based on the specified projectdirectory
. -
Method Summary
Modifier and TypeMethodDescriptionReturn the project directory.resolveModule
(String name) Resolve aProjectStructure
based on the specified module name.
-
Constructor Details
-
ProjectStructure
Create an instance based on the specified projectdirectory
.- Parameters:
projectDirectory
- the project's root directory
-
-
Method Details
-
assertThat
- Specified by:
assertThat
in interfaceorg.assertj.core.api.AssertProvider<ModuleAssert>
-
getProjectDirectory
Return the project directory.- Returns:
- the project directory
-
resolveModule
Resolve aProjectStructure
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
-