|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.codehaus.plexus.PlexusTestCase
org.apache.maven.plugin.eclipse.AbstractEclipsePluginTestCase
public abstract class AbstractEclipsePluginTestCase
| Field Summary | |
|---|---|
protected static String |
ARTIFACT_ID
Artifact-Id for running test builds. |
protected static String |
GROUP_ID
Group-Id for running test builds. |
protected static File |
localRepositoryDirectory
Test repository directory. |
protected static File |
PomFile
Pom File |
protected static 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 | |
|---|---|
AbstractEclipsePluginTestCase()
|
|
| Method Summary | |
|---|---|
protected void |
assertContains(String message,
String full,
String substring)
|
protected void |
assertDoesNotContain(String message,
String full,
String substring)
|
protected void |
assertFileEquals(String mavenRepo,
File expectedFile,
File actualFile)
|
protected void |
compareDirectoryContent(File basedir,
File projectOutputDir,
String additionalDir)
|
protected void |
executeMaven(File pom,
Properties properties,
List goals)
|
protected void |
executeMaven(File pom,
Properties properties,
List goals,
boolean switchLocalRepo)
|
protected File |
getOutputDirectory(String projectName)
|
protected String |
getPluginCLISpecification()
|
protected File |
getTestWorkspaceWorkDirectory(String projectName)
|
protected org.apache.maven.project.MavenProject |
readProject(File pom)
|
protected void |
setUp()
|
protected void |
tearDown()
|
protected void |
testProject(String projectName)
Execute the eclipse:eclipse goal on a test project and verify generated files. |
protected void |
testProject(String projectName,
Properties properties)
Deprecated. Use testProject(String,Properties,String,String) instead |
protected void |
testProject(String projectName,
Properties properties,
String cleanGoal,
String genGoal)
Execute the eclipse:eclipse goal on a test project and verify generated files. |
protected void |
testWorkspace(String projectName)
Execute the eclipse:configure-workspace goal on a test project and verify generated files. |
protected void |
testWorkspace(String projectName,
Properties properties,
String genGoal)
Execute the eclipse:configure-workspace goal on a test project and verify generated files. |
protected void |
testWorkspace(String projectName,
String goal)
Execute the eclipse:configure-workspace goal on a test project and verify generated files. |
| 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 File localRepositoryDirectory
protected static File PomFile
protected static final String GROUP_ID
protected static final String ARTIFACT_ID
protected static final String VERSION
| Constructor Detail |
|---|
public AbstractEclipsePluginTestCase()
| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class org.codehaus.plexus.PlexusTestCaseExceptionPlexusTestCase.setUp()
protected void tearDown()
throws Exception
tearDown in class org.codehaus.plexus.PlexusTestCaseExceptionPlexusTestCase.tearDown()
protected void testProject(String projectName)
throws Exception
projectName - project directory
Exception - any exception generated during test
protected void testProject(String projectName,
Properties properties)
throws Exception
testProject(String,Properties,String,String) instead
projectName - project directoryproperties - additional properties
Exception - any exception generated during test
protected void testProject(String projectName,
Properties properties,
String cleanGoal,
String genGoal)
throws Exception
projectName - project directoryproperties - additional propertiescleanGoal - TODOgenGoal - TODO
Exception - any exception generated during test
protected void testWorkspace(String projectName)
throws Exception
projectName - project directory
Exception - any exception generated during test
protected void testWorkspace(String projectName,
String goal)
throws Exception
projectName - project directory
Exception - any exception generated during test
protected void testWorkspace(String projectName,
Properties properties,
String genGoal)
throws Exception
projectName - project directoryproperties - additional propertiescleanGoal - TODOgenGoal - TODO
Exception - any exception generated during testprotected File getOutputDirectory(String projectName)
protected File getTestWorkspaceWorkDirectory(String projectName)
protected void executeMaven(File pom,
Properties properties,
List goals)
throws org.apache.maven.shared.test.plugin.TestToolsException,
ExecutionFailedException
org.apache.maven.shared.test.plugin.TestToolsException
ExecutionFailedException
protected void executeMaven(File pom,
Properties properties,
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(File pom)
throws org.apache.maven.shared.test.plugin.TestToolsException
org.apache.maven.shared.test.plugin.TestToolsExceptionprotected String getPluginCLISpecification()
protected void compareDirectoryContent(File basedir,
File projectOutputDir,
String additionalDir)
throws IOException
basedir - projectOutputDir -
IOException
protected void assertFileEquals(String mavenRepo,
File expectedFile,
File actualFile)
throws IOException
IOException
protected void assertContains(String message,
String full,
String substring)
protected void assertDoesNotContain(String message,
String full,
String substring)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||