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 org.apache.maven.plugin.AbstractMojo
    Plugin for filling empty gherkin tables with generated combinations
    • Field Detail

      • GENERATED_COMBINE_ITEMS_DIR

        public static final String GENERATED_COMBINE_ITEMS_DIR
        Path to the directory where the combined items get stored
    • Constructor Detail

      • PrepareItemsMojo

        @Inject
        public PrepareItemsMojo​(ApiRequester apiRequester)
    • Method Detail

      • 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
      • getPluginLog

        public static org.apache.maven.plugin.logging.Log getPluginLog()
      • setCombineItemsFile

        public void setCombineItemsFile​(String combineItemsFile)
        Path to file that contains the values to combine
      • 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
      • setTruststore

        public void setTruststore​(String truststore)
        Path to truststore
      • setTruststorePw

        public void setTruststorePw​(String truststorePw)
        Path to truststore
      • setClientCertStore

        public void setClientCertStore​(String clientCertStore)
        Path to truststore
      • setClientCertStorePw

        public void setClientCertStorePw​(String clientCertStorePw)
        Path to truststore
      • setHardFail

        public void setHardFail​(boolean hardFail)
        Say if the build should break if at least one API is not reachable. If set to false it will generate a combine_items.json file without the not reachable API`s
      • setConfigFail

        public void setConfigFail​(boolean configFail)
        Say if the build should break if at least one manual set Tag/Property does not match the found value on info endpoint.
      • setItemsCreator

        public void setItemsCreator​(ItemsCreator itemsCreator)