|
||||||||||
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.testing.AbstractMojoTestCase
org.apache.maven.plugin.eclipse.it.AbstractEclipsePluginIT
org.apache.maven.plugin.eclipse.it.EclipsePluginMasterProjectIT
public class EclipsePluginMasterProjectIT
Master test for eclipse .classpath and .wtpmodules generation.
This test use a 2 modules project with all the mvn dependencies flavours (direct, transitive, with compile/test/provided/system scope, required and optional, artifacts and modules).
In order to fully test the eclipse plugin execution in a such complex environment mvn is executed from a command
line. Mvn is started using a custom settings.xml file, created on the fly. The custom settings.xml only adds a mirror
for the central repository which is actually a local (file://) repository for loading files from
src/test/m2repo
The following is the base layout of modules/dependencies. The actual test is to check generated files for module-2
+----------------+ +-----------------+ +-----------------+ /| module 1 (jar) | ----> | refproject | ----> | deps-refproject | / +----------------+ +-----------------+ +-----------------+ / ˆ root | (depends on) \ | \ +----------------+ +-----------------+ +-----------------+ \| module 2 (war) | ----> | direct | ----> | deps-direct | +----------------+ +-----------------+ +-----------------+
Field Summary | |
---|---|
protected File |
basedir
|
Fields inherited from class org.apache.maven.plugin.eclipse.it.AbstractEclipsePluginIT |
---|
ARTIFACT_ID, GROUP_ID, localRepositoryDirectory, PomFile, VERSION |
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
container |
Constructor Summary | |
---|---|
EclipsePluginMasterProjectIT()
|
Method Summary | |
---|---|
protected void |
executeMaven2()
|
protected void |
setUp()
|
void |
testModule1Classpath()
|
void |
testModule1Project()
|
void |
testModule1Wtpmodules()
|
void |
testModule2Classpath()
|
void |
testModule2Project()
|
void |
testModule2Wtpmodules()
|
Methods inherited from class org.apache.maven.plugin.eclipse.it.AbstractEclipsePluginIT |
---|
assertContains, assertDoesNotContain, assertFileEquals, assertNotAvailableMarkerFileDoesNotExist, assertNotAvailableMarkerFileExists, compareDirectoryContent, executeMaven, executeMaven, getMavenHome, getNotAvailableMarkerFile, getOutputDirectory, getPluginCLISpecification, getTestWorkspaceWorkDirectory, readProject, tearDown, testProject, testProject, testProject, testProject, testProject, testProject, testWorkspace, testWorkspace, testWorkspace |
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 |
---|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected File basedir
Constructor Detail |
---|
public EclipsePluginMasterProjectIT()
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class AbstractEclipsePluginIT
Exception
AbstractEclipsePluginIT.setUp()
protected void executeMaven2() throws Exception
Exception
public void testModule1Project() throws Exception
Exception
public void testModule1Classpath() throws Exception
Exception
public void testModule1Wtpmodules() throws Exception
Exception
public void testModule2Project() throws Exception
Exception
public void testModule2Classpath() throws Exception
Exception
public void testModule2Wtpmodules() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |