Package de.gematik.prepare
Class PrepareItemsMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.gematik.BaseMojo
-
- de.gematik.prepare.PrepareItemsMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="prepare-items", defaultPhase=GENERATE_TEST_SOURCES) public class PrepareItemsMojo extends BaseMojoPlugin for filling empty gherkin tables with generated combinations
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_FAIL_WARN_MESSAGEstatic StringFAILED_REQ_WARN_MESSAGEstatic StringUSED_GROUPS_PATH-
Fields inherited from class de.gematik.BaseMojo
apiErrors, GENERATED_COMBINE_ITEMS_DIR
-
-
Constructor Summary
Constructors Constructor Description PrepareItemsMojo(ApiRequester apiRequester)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckExpressionSetCorrectly()voidexecute()GroupMatchStrategyTypegetDefaultMatchStrategy()Default matching strategy.static PrepareItemsMojogetInstance()static org.apache.maven.plugin.logging.LoggetPluginLog()List<PoolGroup>getPoolGroups()Name a list of lists that should be used and how often.protected voidrun()voidsetConfig(PrepareItemsConfig config)voidsetDefaultMatchStrategy(GroupMatchStrategyType defaultMatchStrategy)Default matching strategy.voidsetExcludedGroups(List<String> excludedGroups)Name of all groups of items in combine_items.json explicitly not to usevoidsetInfoResourceLocation(String infoResourceLocation)Location to infostatic voidsetInstance(PrepareItemsMojo instance)voidsetItems(List<CombineItem> items)voidsetItemsCreator(ItemsCreator itemsCreator)voidsetPooler(Pooler pooler)voidsetPoolGroups(List<PoolGroup> poolGroups)Name a list of lists that should be used and how often.voidsetPoolGroupString(String poolGroupString)This is another way to define poolGroups.voidsetPoolSize(int poolSize)Size of to use different groupsvoidsetPropertyExpressions(List<PropertyExpression> propertyExpressions)List of Expressions that set as propertyvoidsetSkipPrep(boolean skipPrep)Parameter to decide if prepare-execution should be runvoidsetTagExpressions(List<TagExpression> tagExpressions)Expression and tag to set if expression is true-
Methods inherited from class de.gematik.BaseMojo
getAcceptedResponseFamilies, getAllowedResponseCodes, getApiErrors, getClientCertStore, getClientCertStorePw, getCombineItemsFile, getProxyHost, getProxyPort, getTruststore, getTruststorePw, isBreakOnContextError, isBreakOnFailedRequest, isSkip, setAcceptedResponseFamilies, setAllowedResponseCodes, setBreakOnContextError, setBreakOnFailedRequest, setClientCertStore, setClientCertStorePw, setCombineItemsFile, setProxyHost, setProxyPort, setSkip, setTruststore, setTruststorePw
-
-
-
-
Field Detail
-
FAILED_REQ_WARN_MESSAGE
public static final String FAILED_REQ_WARN_MESSAGE
- See Also:
- Constant Field Values
-
CONFIG_FAIL_WARN_MESSAGE
public static final String CONFIG_FAIL_WARN_MESSAGE
- See Also:
- Constant Field Values
-
USED_GROUPS_PATH
public static final String USED_GROUPS_PATH
-
-
Constructor Detail
-
PrepareItemsMojo
@Inject public PrepareItemsMojo(ApiRequester apiRequester)
-
-
Method Detail
-
getPluginLog
public static org.apache.maven.plugin.logging.Log getPluginLog()
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
checkExpressionSetCorrectly
protected void checkExpressionSetCorrectly() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
run
protected void run() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setInfoResourceLocation
public void setInfoResourceLocation(String infoResourceLocation)
Location to info
-
setTagExpressions
public void setTagExpressions(List<TagExpression> tagExpressions)
Expression and tag to set if expression is true
-
setPropertyExpressions
public void setPropertyExpressions(List<PropertyExpression> propertyExpressions)
List of Expressions that set as property
-
setPoolGroups
public void setPoolGroups(List<PoolGroup> poolGroups)
Name a list of lists that should be used and how often.
-
setExcludedGroups
public void setExcludedGroups(List<String> excludedGroups)
Name of all groups of items in combine_items.json explicitly not to use
-
setPoolSize
public void setPoolSize(int poolSize)
Size of to use different groups
-
setPoolGroupString
public void setPoolGroupString(String poolGroupString)
This is another way to define poolGroups. Will override 'poolGroups' Pattern GroupPattern is mandatory. Amount == (0 || null) means all, Strategy == null -> default strategy ;| , , | , ,
-
setDefaultMatchStrategy
public void setDefaultMatchStrategy(GroupMatchStrategyType defaultMatchStrategy)
Default matching strategy. If no strategy is named in poolGroup this will be applied
-
setSkipPrep
public void setSkipPrep(boolean skipPrep)
Parameter to decide if prepare-execution should be run
-
setItemsCreator
public void setItemsCreator(ItemsCreator itemsCreator)
-
setItems
public void setItems(List<CombineItem> items)
-
setPooler
public void setPooler(Pooler pooler)
-
setConfig
public void setConfig(PrepareItemsConfig config)
-
getInstance
public static PrepareItemsMojo getInstance()
-
setInstance
public static void setInstance(PrepareItemsMojo instance)
-
getPoolGroups
public List<PoolGroup> getPoolGroups()
Name a list of lists that should be used and how often.
-
getDefaultMatchStrategy
public GroupMatchStrategyType getDefaultMatchStrategy()
Default matching strategy. If no strategy is named in poolGroup this will be applied
-
-