Package com.sap.cds.maven.plugin.add
Class AddIntegrationTestMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sap.cds.maven.plugin.AbstractCdsMojo
com.sap.cds.maven.plugin.add.AddIntegrationTestMojo
- All Implemented Interfaces:
CdsMojoLogger
,org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="addIntegrationTest",
aggregator=true)
public class AddIntegrationTestMojo
extends AbstractCdsMojo
Adds an integration test module to the CAP Java project. The module is created in the
./integration-tests folder and an entry to the list of modules in the parent pom.xml is added.
Call
It automatically detects the OData version of the CAP Java project and adds the corresponding integration test class.
Note: This goal can only be executed from the command line.
Call
mvn cds:addIntegrationTest
or mvn com.sap.cds:cds-maven-plugin:addIntegrationTest
to add an
integration test module.It automatically detects the OData version of the CAP Java project and adds the corresponding integration test class.
Note: This goal can only be executed from the command line.
- Since:
- 1.5.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.eclipse.aether.RepositorySystemSession
Defines settings and components that control the repository system.Fields inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
buildContext, CDS_SERVICES_GROUPID, mojoExecution, PLUGIN_KEY, project, session, settings
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Methods inherited from class com.sap.cds.maven.plugin.AbstractCdsMojo
ensureCliExecuted, findGoalExecution, findSrvProject, getReactorBaseDirectory, isCliExecuted, logDebug, logDebug, logError, logError, logError, logInfo, logWarn, logWarn, logWarn, scanDirectory, setProperty, strong
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
repositorySystemSession
@Parameter(defaultValue="${repositorySystemSession}", required=true, readonly=true) protected org.eclipse.aether.RepositorySystemSession repositorySystemSessionDefines settings and components that control the repository system.
-
-
Constructor Details
-
AddIntegrationTestMojo
public AddIntegrationTestMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getIntegrationTestTemplates
- Returns:
- a
List
of string arrays containing path of class template and name of class to create.
-