Class 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 BaseMojo
    Plugin for filling empty gherkin tables with generated combinations
    • 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.MojoExecutionException
        org.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)
      • setPooler

        public void setPooler​(Pooler pooler)