Class CreateTestMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    CreateExtensionMojo

    @Mojo(name="new-test",
          requiresProject=true,
          inheritByDefault=false)
    public class CreateTestMojo
    extends AbstractExtensionListMojo
    Scaffolds a new test.
    Since:
    0.28.0
    • Field Detail

      • basePath

        protected Path basePath
    • Constructor Detail

      • CreateTestMojo

        public CreateTestMojo()
    • 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
      • evalTemplate

        public void evalTemplate​(freemarker.template.Configuration cfg,
                                 String templateUri,
                                 Path dest,
                                 TemplateParams model)