|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.test.plugin.PluginTestTool
public class PluginTestTool
Test tool that provides a single point of access for staging a plugin artifact - along with its POM lineage - into a clean test-time local repository. This involves modifying the plugin POM to provide a stable test-time version for test-build POMs to reference, then installing the plugin jar and associated POMs (including those ancestors that are reachable using <relativePath>) into the test local repository.
WARNING: Currently, the RepositoryTool
will not
resolve parent POMs that exist only in your normal local repository, and are not reachable
using the relativePath element. This may result in failed test builds, as one or more of the
plugin's ancestor POMs cannot be resolved.
Field Summary | |
---|---|
static java.lang.String |
ROLE
|
Constructor Summary | |
---|---|
PluginTestTool()
|
Method Summary | |
---|---|
java.io.File |
preparePluginForIntegrationTesting(java.io.File pomFile,
java.lang.String testVersion)
Stage the plugin, using a stable version, into a temporary local-repository directory that is generated by this method. |
java.io.File |
preparePluginForIntegrationTesting(java.io.File pomFile,
java.lang.String testVersion,
java.io.File localRepositoryDir)
Stage the plugin, using a stable version, into the specified local-repository directory. |
java.io.File |
preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile,
java.lang.String testVersion)
Stage the plugin, using a stable version, into a temporary local-repository directory that is generated by this method. |
java.io.File |
preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile,
java.lang.String testVersion,
java.io.File localRepositoryDir)
Stage the plugin, using a stable version, into the specified local-repository directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ROLE
Constructor Detail |
---|
public PluginTestTool()
Method Detail |
---|
public java.io.File preparePluginForIntegrationTesting(java.io.File pomFile, java.lang.String testVersion) throws TestToolsException
testVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goals
TestToolsException
public java.io.File preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile, java.lang.String testVersion) throws TestToolsException
testVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goals
TestToolsException
public java.io.File preparePluginForIntegrationTesting(java.io.File pomFile, java.lang.String testVersion, java.io.File localRepositoryDir) throws TestToolsException
testVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goalslocalRepositoryDir
- The base-directory location of the test local repository, into which
the plugin's test version should be staged.
TestToolsException
public java.io.File preparePluginForUnitTestingWithMavenBuilds(java.io.File pomFile, java.lang.String testVersion, java.io.File localRepositoryDir) throws TestToolsException
testVersion
- The test version for the plugin, used for reference in test-build POMs and
fully-qualified goalslocalRepositoryDir
- The base-directory location of the test local repository, into which
the plugin's test version should be staged.
TestToolsException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |