|
||||||||||
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.apache.maven.plugin.ear.it.AbstractEarPluginIT
public abstract class AbstractEarPluginIT
Base class for ear test cases.
Field Summary | |
---|---|
protected java.lang.String |
FINAL_NAME_PREFIX
|
protected java.lang.String |
FINAL_NAME_SUFFIX
|
protected java.io.File |
localRepositoryDir
Test repository directory. |
protected java.io.File |
settingsFile
|
Constructor Summary | |
---|---|
AbstractEarPluginIT()
|
Method Summary | |
---|---|
protected void |
assertArchiveContent(java.io.File baseDir,
java.lang.String projectName,
java.lang.String[] artifactNames,
boolean[] artifactsDirectory)
|
protected void |
assertDeploymentDescriptors(java.io.File baseDir,
java.lang.String projectName)
Asserts that the deployment descriptors have been generated successfully. |
protected void |
assertEarArchive(java.io.File baseDir,
java.lang.String projectName)
|
protected void |
assertEarDirectory(java.io.File baseDir,
java.lang.String projectName)
|
protected java.util.List |
buildArchiveContentFiles(java.io.File baseDir,
java.util.List expectedDirectories)
|
protected java.lang.String |
buildFinalName(java.lang.String projectName)
|
protected java.io.File |
doTestProject(java.lang.String projectName,
java.lang.String[] expectedArtifacts)
Executes the specified projects and asserts the given artifacts as artifacts (non directory). |
protected java.io.File |
doTestProject(java.lang.String projectName,
java.lang.String[] expectedArtifacts,
boolean testDeploymentDescriptors)
Executes the specified projects and asserts the given artifacts as artifacts (non directory) |
protected java.io.File |
doTestProject(java.lang.String projectName,
java.lang.String[] expectedArtifacts,
boolean[] artifactsDirectory)
Executes the specified projects and asserts the given artifacts. |
protected java.io.File |
doTestProject(java.lang.String projectName,
java.lang.String[] expectedArtifacts,
boolean[] artifactsDirectory,
boolean testDeploymentDescriptors)
Executes the specified projects and asserts the given artifacts. |
protected java.io.File |
executeMojo(java.lang.String projectName,
java.util.Properties properties)
Execute the EAR plugin for the specified project. |
protected java.io.File |
executeMojo(java.lang.String projectName,
java.util.Properties properties,
boolean expectNoError)
Execute the EAR plugin for the specified project. |
protected java.io.File |
getBasedir()
|
protected java.io.File |
getEarArchive(java.io.File baseDir,
java.lang.String projectName)
|
protected java.io.File |
getEarDirectory(java.io.File baseDir,
java.lang.String projectName)
|
protected java.io.File |
getTargetDirectory(java.io.File basedir)
|
protected java.io.File |
getTestDir(java.lang.String projectName)
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final java.lang.String FINAL_NAME_PREFIX
protected final java.lang.String FINAL_NAME_SUFFIX
protected java.io.File localRepositoryDir
protected java.io.File settingsFile
Constructor Detail |
---|
public AbstractEarPluginIT()
Method Detail |
---|
protected java.io.File executeMojo(java.lang.String projectName, java.util.Properties properties, boolean expectNoError) throws java.lang.Exception
projectName
- the name of the projectproperties
- extra properties to be used by the embedder
java.lang.Exception
- if an error occuredprotected java.io.File executeMojo(java.lang.String projectName, java.util.Properties properties) throws java.lang.Exception
projectName
- the name of the projectproperties
- extra properties to be used by the embedder
java.lang.Exception
- if an error occuredprotected java.io.File doTestProject(java.lang.String projectName, java.lang.String[] expectedArtifacts, boolean[] artifactsDirectory, boolean testDeploymentDescriptors) throws java.lang.Exception
projectName
- the project to testexpectedArtifacts
- the list of artifacts to be found in the EAR archiveartifactsDirectory
- whether the artifact is an exploded artifactsDirectory or nottestDeploymentDescriptors
- whether we should test deployemnt descriptors
java.lang.Exception
protected java.io.File doTestProject(java.lang.String projectName, java.lang.String[] expectedArtifacts, boolean[] artifactsDirectory) throws java.lang.Exception
projectName
- the project to testexpectedArtifacts
- the list of artifacts to be found in the EAR archiveartifactsDirectory
- whether the artifact is an exploded artifactsDirectory or not
java.lang.Exception
protected java.io.File doTestProject(java.lang.String projectName, java.lang.String[] expectedArtifacts, boolean testDeploymentDescriptors) throws java.lang.Exception
projectName
- the project to testexpectedArtifacts
- the list of artifacts to be found in the EAR archivetestDeploymentDescriptors
- whether we should test deployemnt descriptors
java.lang.Exception
protected java.io.File doTestProject(java.lang.String projectName, java.lang.String[] expectedArtifacts) throws java.lang.Exception
projectName
- the project to testexpectedArtifacts
- the list of artifacts to be found in the EAR archive
java.lang.Exception
protected void assertEarArchive(java.io.File baseDir, java.lang.String projectName)
protected void assertEarDirectory(java.io.File baseDir, java.lang.String projectName)
protected java.io.File getTargetDirectory(java.io.File basedir)
protected java.io.File getEarArchive(java.io.File baseDir, java.lang.String projectName)
protected java.io.File getEarDirectory(java.io.File baseDir, java.lang.String projectName)
protected java.lang.String buildFinalName(java.lang.String projectName)
protected void assertArchiveContent(java.io.File baseDir, java.lang.String projectName, java.lang.String[] artifactNames, boolean[] artifactsDirectory)
protected java.util.List buildArchiveContentFiles(java.io.File baseDir, java.util.List expectedDirectories)
protected java.io.File getBasedir()
protected java.io.File getTestDir(java.lang.String projectName) throws java.io.IOException
java.io.IOException
protected void assertDeploymentDescriptors(java.io.File baseDir, java.lang.String projectName) throws java.io.IOException
baseDir
- the directory of the tested projectprojectName
- the name of the project
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |