public class EclipsePluginMasterProjectIT extends AbstractEclipsePluginIT
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 |
+----------------+ +-----------------+ +-----------------+
| Modifier and Type | Field and Description |
|---|---|
protected File |
basedir |
ARTIFACT_ID, GROUP_ID, localRepositoryDirectory, PomFile, VERSION| Constructor and Description |
|---|
EclipsePluginMasterProjectIT() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeMaven2() |
protected void |
setUp() |
void |
testModule1Classpath() |
void |
testModule1Project() |
void |
testModule1Wtpmodules() |
void |
testModule2Classpath() |
void |
testModule2Project() |
void |
testModule2Wtpmodules() |
assertContains, assertDoesNotContain, assertFileEquals, assertNotAvailableMarkerFileDoesNotExist, assertNotAvailableMarkerFileExists, compareDirectoryContent, executeMaven, executeMaven, getMavenHome, getNotAvailableMarkerFile, getOutputDirectory, getPluginCLISpecification, getTestWorkspaceWorkDirectory, readProject, tearDown, testProject, testProject, testProject, testProject, testProject, testProject, testWorkspace, testWorkspace, testWorkspaceconfigureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setVariableValueToObjectcreateContainerInstance, customizeContext, customizeContext, getBasedir, getClassLoader, getConfiguration, getConfiguration, getContainer, getCustomConfiguration, getResourceAsStream, getTestFile, getTestFile, getTestPath, getTestPath, lookup, lookup, releaseassertEquals, 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, toStringprotected File basedir
protected void setUp()
throws Exception
setUp in class AbstractEclipsePluginITExceptionAbstractEclipsePluginIT.setUp()Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.