|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.codehaus.plexus.PlexusTestCase org.apache.maven.plugin.testing.AbstractMojoTestCase org.apache.maven.plugin.eclipse.it.AbstractEclipsePluginIT
public abstract class AbstractEclipsePluginIT
Field Summary | |
---|---|
protected static java.lang.String |
ARTIFACT_ID
Artifact-Id for running test builds. |
protected static java.lang.String |
GROUP_ID
Group-Id for running test builds. |
protected static java.io.File |
localRepositoryDirectory
Test repository directory. |
protected static java.io.File |
PomFile
Pom File |
protected static java.lang.String |
VERSION
Version under which the plugin was installed to the test-time local repository for running test builds. |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
basedir, container |
Constructor Summary | |
---|---|
AbstractEclipsePluginIT()
|
Method Summary | |
---|---|
protected void |
assertContains(java.lang.String message,
java.lang.String full,
java.lang.String substring)
|
protected void |
assertDoesNotContain(java.lang.String message,
java.lang.String full,
java.lang.String substring)
|
protected void |
assertFileEquals(java.io.File expectedFile,
java.io.File actualFile)
|
protected void |
assertNotAvailableMarkerFileDoesNotExist(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String classifier,
java.lang.String inClassifier)
Assert that the not available marker file does not exist for the specified artifact details. |
protected void |
assertNotAvailableMarkerFileExists(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String classifier,
java.lang.String inClassifier)
Assert that the not available marker file exists for the specified artifact details. |
protected void |
compareDirectoryContent(java.io.File basedir,
java.io.File projectOutputDir)
|
protected void |
executeMaven(java.io.File pom,
java.util.Properties properties,
java.util.List goals)
|
protected void |
executeMaven(java.io.File pom,
java.util.Properties properties,
java.util.List goals,
boolean switchLocalRepo)
|
protected java.io.File |
getNotAvailableMarkerFile(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String classifier,
java.lang.String inClassifier)
Return the not available marker file for the specified artifact details. |
protected java.io.File |
getOutputDirectory(java.lang.String projectName)
|
protected java.lang.String |
getPluginCLISpecification()
|
protected java.io.File |
getTestWorkspaceWorkDirectory(java.lang.String projectName)
|
protected org.apache.maven.project.MavenProject |
readProject(java.io.File pom)
|
protected void |
setUp()
|
protected void |
tearDown()
|
protected void |
testProject(java.io.File basedir)
Execute the eclipse:eclipse goal on a test project and verify generated files. |
protected void |
testProject(java.io.File basedir,
java.util.Properties properties,
java.lang.String cleanGoal,
java.lang.String genGoal)
Execute the eclipse:eclipse goal on a test project and verify generated files. |
protected void |
testProject(java.lang.String projectName)
Execute the eclipse:eclipse goal on a test project and verify generated files. |
protected void |
testProject(java.lang.String projectName,
java.util.Properties properties,
java.lang.String cleanGoal,
java.lang.String genGoal)
Execute the eclipse:eclipse goal on a test project and verify generated files. |
protected void |
testWorkspace(java.lang.String projectName)
Execute the eclipse:configure-workspace goal on a test project and verify generated files. |
protected void |
testWorkspace(java.lang.String projectName,
java.util.Properties properties,
java.lang.String genGoal)
Execute the eclipse:configure-workspace goal on a test project and verify generated files. |
protected void |
testWorkspace(java.lang.String projectName,
java.lang.String goal)
Execute the eclipse:configure-workspace goal on a test project and verify generated files. |
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase |
---|
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObject |
Methods inherited from class org.codehaus.plexus.PlexusTestCase |
---|
createContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, release |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static java.io.File localRepositoryDirectory
protected static java.io.File PomFile
protected static final java.lang.String GROUP_ID
protected static final java.lang.String ARTIFACT_ID
protected static final java.lang.String VERSION
Constructor Detail |
---|
public AbstractEclipsePluginIT()
Method Detail |
---|
protected void setUp() throws java.lang.Exception
setUp
in class org.apache.maven.plugin.testing.AbstractMojoTestCase
java.lang.Exception
PlexusTestCase.setUp()
protected void tearDown() throws java.lang.Exception
tearDown
in class org.codehaus.plexus.PlexusTestCase
java.lang.Exception
PlexusTestCase.tearDown()
protected void testProject(java.lang.String projectName) throws java.lang.Exception
projectName
- project directory
java.lang.Exception
- any exception generated during testprotected void testProject(java.io.File basedir) throws java.lang.Exception
basedir
- basedir of mvn execution
java.lang.Exception
- any exception generated during testprotected void testProject(java.lang.String projectName, java.util.Properties properties, java.lang.String cleanGoal, java.lang.String genGoal) throws java.lang.Exception
projectName
- project directoryproperties
- additional propertiescleanGoal
- TODOgenGoal
- TODO
java.lang.Exception
- any exception generated during testprotected void testProject(java.io.File basedir, java.util.Properties properties, java.lang.String cleanGoal, java.lang.String genGoal) throws java.lang.Exception
basedir
- basedir of mvn executionproperties
- additional propertiescleanGoal
- TODOgenGoal
- TODO
java.lang.Exception
- any exception generated during testprotected void testWorkspace(java.lang.String projectName) throws java.lang.Exception
projectName
- project directory
java.lang.Exception
- any exception generated during testprotected void testWorkspace(java.lang.String projectName, java.lang.String goal) throws java.lang.Exception
projectName
- project directory
java.lang.Exception
- any exception generated during testprotected void testWorkspace(java.lang.String projectName, java.util.Properties properties, java.lang.String genGoal) throws java.lang.Exception
projectName
- project directoryproperties
- additional propertiescleanGoal
- TODOgenGoal
- TODO
java.lang.Exception
- any exception generated during testprotected java.io.File getOutputDirectory(java.lang.String projectName)
protected java.io.File getTestWorkspaceWorkDirectory(java.lang.String projectName)
protected void executeMaven(java.io.File pom, java.util.Properties properties, java.util.List goals) throws org.apache.maven.shared.test.plugin.TestToolsException, ExecutionFailedException
org.apache.maven.shared.test.plugin.TestToolsException
ExecutionFailedException
protected void executeMaven(java.io.File pom, java.util.Properties properties, java.util.List goals, boolean switchLocalRepo) throws org.apache.maven.shared.test.plugin.TestToolsException, ExecutionFailedException
org.apache.maven.shared.test.plugin.TestToolsException
ExecutionFailedException
protected org.apache.maven.project.MavenProject readProject(java.io.File pom) throws org.apache.maven.shared.test.plugin.TestToolsException
org.apache.maven.shared.test.plugin.TestToolsException
protected java.lang.String getPluginCLISpecification()
protected void compareDirectoryContent(java.io.File basedir, java.io.File projectOutputDir) throws org.apache.maven.plugin.MojoExecutionException
basedir
- the base directory of the projectprojectOutputDir
- the directory where the eclipse plugin will write the output files.
org.apache.maven.plugin.MojoExecutionException
protected void assertFileEquals(java.io.File expectedFile, java.io.File actualFile) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
protected void assertContains(java.lang.String message, java.lang.String full, java.lang.String substring)
protected void assertDoesNotContain(java.lang.String message, java.lang.String full, java.lang.String substring)
protected java.io.File getNotAvailableMarkerFile(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier, java.lang.String inClassifier) throws java.lang.Exception
groupId
- group id of artifactartifactId
- artifact id of artifactversion
- version of artifactclassifier
- the classifier of the artifactinClassifier
- the sources/javadocs to be attached
java.lang.Exception
- failures.IdeUtils.createArtifactWithClassifier(String, String, String, String, String, ArtifactFactory)
protected void assertNotAvailableMarkerFileExists(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier, java.lang.String inClassifier) throws java.lang.Exception
groupId
- group id of artifactartifactId
- artifact id of artifactversion
- version of artifactclassifier
- the classifier of the artifactinClassifier
- the sources/javadocs to be attached
java.lang.Exception
- failuresprotected void assertNotAvailableMarkerFileDoesNotExist(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String classifier, java.lang.String inClassifier) throws java.lang.Exception
groupId
- group id of artifactartifactId
- artifact id of artifactversion
- version of artifactclassifier
- the classifier of the artifactinClassifier
- the sources/javadocs to be attached
java.lang.Exception
- failures
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |