Class ProjectGeneratorTester
java.lang.Object
io.spring.initializr.generator.test.project.AbstractProjectGenerationTester<ProjectGeneratorTester>
io.spring.initializr.generator.test.project.ProjectGeneratorTester
A tester class for
ProjectGenerator
. Contrary to ProjectAssetTester
,
standard ProjectGenerationConfiguration
classes are processed
automatically.Extra beans can be added using bean registration, a configuration class or
via the customization of the project
generation context.- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested classes/interfaces inherited from class io.spring.initializr.generator.test.project.AbstractProjectGenerationTester
AbstractProjectGenerationTester.ProjectGenerationInvoker<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(MutableProjectDescription description) <T> T
generate
(MutableProjectDescription description, ProjectAssetGenerator<T> projectAssetGenerator) protected ProjectGeneratorTester
newInstance
(Map<Class<?>, Supplier<?>> beanDefinitions, Consumer<ProjectGenerationContext> contextInitializer, Consumer<MutableProjectDescription> descriptionCustomizer) Methods inherited from class io.spring.initializr.generator.test.project.AbstractProjectGenerationTester
invokeProjectGeneration, withBean, withConfiguration, withContextInitializer, withDescriptionCustomizer, withDirectory, withIndentingWriterFactory
-
Constructor Details
-
ProjectGeneratorTester
public ProjectGeneratorTester()
-
-
Method Details
-
newInstance
protected ProjectGeneratorTester newInstance(Map<Class<?>, Supplier<?>> beanDefinitions, Consumer<ProjectGenerationContext> contextInitializer, Consumer<MutableProjectDescription> descriptionCustomizer) - Specified by:
newInstance
in classAbstractProjectGenerationTester<ProjectGeneratorTester>
-
generate
-
generate
public <T> T generate(MutableProjectDescription description, ProjectAssetGenerator<T> projectAssetGenerator)
-