|
||||||||||
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 String |
FINAL_NAME_PREFIX
|
protected String |
FINAL_NAME_SUFFIX
|
protected File |
localRepositoryDir
Test repository directory. |
protected File |
settingsFile
|
Constructor Summary | |
---|---|
AbstractEarPluginIT()
|
Method Summary | |
---|---|
protected void |
assertArchiveContent(File baseDir,
String projectName,
String[] artifactNames,
boolean[] artifactsDirectory)
|
protected void |
assertDeploymentDescriptors(File baseDir,
String projectName)
Asserts that the deployment descriptors have been generated successfully. |
protected void |
assertEarArchive(File baseDir,
String projectName)
|
protected void |
assertEarDirectory(File baseDir,
String projectName)
|
protected List |
buildArchiveContentFiles(File baseDir,
List expectedDirectories)
|
protected String |
buildFinalName(String projectName)
|
protected File |
doTestProject(String projectName,
String[] expectedArtifacts)
Executes the specified projects and asserts the given artifacts as artifacts (non directory). |
protected File |
doTestProject(String projectName,
String[] expectedArtifacts,
boolean testDeploymentDescriptors)
Executes the specified projects and asserts the given artifacts as artifacts (non directory) |
protected File |
doTestProject(String projectName,
String[] expectedArtifacts,
boolean[] artifactsDirectory)
Executes the specified projects and asserts the given artifacts. |
protected File |
doTestProject(String projectName,
String[] expectedArtifacts,
boolean[] artifactsDirectory,
boolean testDeploymentDescriptors)
Executes the specified projects and asserts the given artifacts. |
protected File |
executeMojo(String projectName,
Properties properties)
Execute the EAR plugin for the specified project. |
protected File |
executeMojo(String projectName,
Properties properties,
boolean expectNoError)
Execute the EAR plugin for the specified project. |
protected File |
getBasedir()
|
protected File |
getEarArchive(File baseDir,
String projectName)
|
protected File |
getEarDirectory(File baseDir,
String projectName)
|
protected File |
getTargetDirectory(File basedir)
|
protected File |
getTestDir(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 String FINAL_NAME_PREFIX
protected final String FINAL_NAME_SUFFIX
protected File localRepositoryDir
protected File settingsFile
Constructor Detail |
---|
public AbstractEarPluginIT()
Method Detail |
---|
protected File executeMojo(String projectName, Properties properties, boolean expectNoError) throws Exception
projectName
- the name of the projectproperties
- extra properties to be used by the embedder
Exception
- if an error occurredprotected File executeMojo(String projectName, Properties properties) throws Exception
projectName
- the name of the projectproperties
- extra properties to be used by the embedder
Exception
- if an error occurredprotected File doTestProject(String projectName, String[] expectedArtifacts, boolean[] artifactsDirectory, boolean testDeploymentDescriptors) throws 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 deployment descriptors
Exception
protected File doTestProject(String projectName, String[] expectedArtifacts, boolean[] artifactsDirectory) throws 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
Exception
protected File doTestProject(String projectName, String[] expectedArtifacts, boolean testDeploymentDescriptors) throws Exception
projectName
- the project to testexpectedArtifacts
- the list of artifacts to be found in the EAR archivetestDeploymentDescriptors
- whether we should test deployment descriptors
Exception
protected File doTestProject(String projectName, String[] expectedArtifacts) throws Exception
projectName
- the project to testexpectedArtifacts
- the list of artifacts to be found in the EAR archive
Exception
protected void assertEarArchive(File baseDir, String projectName)
protected void assertEarDirectory(File baseDir, String projectName)
protected File getTargetDirectory(File basedir)
protected File getEarArchive(File baseDir, String projectName)
protected File getEarDirectory(File baseDir, String projectName)
protected String buildFinalName(String projectName)
protected void assertArchiveContent(File baseDir, String projectName, String[] artifactNames, boolean[] artifactsDirectory)
protected List buildArchiveContentFiles(File baseDir, List expectedDirectories)
protected File getBasedir()
protected File getTestDir(String projectName) throws IOException
IOException
protected void assertDeploymentDescriptors(File baseDir, String projectName) throws IOException
baseDir
- the directory of the tested projectprojectName
- the name of the project
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |