Class BuilderCreationMethodStrategy
java.lang.Object
de.floydkretschmar.fixturize.stategies.creation.BuilderCreationMethodStrategy
- All Implemented Interfaces:
CreationMethodGenerationStrategy
public class BuilderCreationMethodStrategy
extends Object
implements CreationMethodGenerationStrategy
The strategy that generates on creation method for each
FixtureBuilder annotation on a class also annotated
with Fixture. If FixtureBuilder.usedSetters() is empty, all fields will be used.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateCreationMethods(TypeElement element, ConstantDefinitionMap constantMap, TypeMetadata metadata) Returns aCollectionof allCreationMethods that have been generated for the provided element and constants according to the specifiedFixtureBuilderstrategy.
-
Constructor Details
-
BuilderCreationMethodStrategy
public BuilderCreationMethodStrategy()
-
-
Method Details
-
generateCreationMethods
public Collection<CreationMethod> generateCreationMethods(TypeElement element, ConstantDefinitionMap constantMap, TypeMetadata metadata) Returns aCollectionof allCreationMethods that have been generated for the provided element and constants according to the specifiedFixtureBuilderstrategy.- Specified by:
generateCreationMethodsin interfaceCreationMethodGenerationStrategy- Parameters:
element- - for which the creation methods are being generatedconstantMap- - which contains the already generated constants for reference- Returns:
- a
Collectionof generatedCreationMethods
-