|
||||||||||
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.codehaus.plexus.PlexusTestCase org.apache.maven.plugin.testing.AbstractMojoTestCase org.codehaus.mojo.exec.ExecJavaMojoTest
public class ExecJavaMojoTest
Field Summary |
---|
Fields inherited from class org.codehaus.plexus.PlexusTestCase |
---|
basedir, container |
Constructor Summary | |
---|---|
ExecJavaMojoTest()
|
Method Summary | |
---|---|
private String |
execute(File pom,
String goal)
|
private void |
setUpProject(File pomFile,
org.apache.maven.plugin.AbstractMojo mojo)
|
private boolean |
stringContains(String str,
String sequence)
|
void |
testEmptySystemProperty()
MEXEC-10 Check that an execution with no arguments and an system property with no value produces the expected result we load the config from a pom file and fill up the MavenProject property ourselves |
void |
testIncorrectMainMethodSignature()
MEXEC-29 exec:java throws NPE if the mainClass main method has not a correct signature |
void |
testRunWithArgs()
Test the commandline parsing facilities of the AbstractExecMojo class |
void |
testSimpleRun()
Check that a simple execution with no arguments and no system properties produces the expected result we load the config from a pom file and fill up the MavenProject property ourselves |
void |
testUncooperativeThread()
See MEXEC-15. |
void |
testWaitNoDaemonThreads()
For cases where the Java code spawns Threads and main returns soon. |
void |
testWaitNonInterruptibleDaemonThreads()
For cases where the Java code spawns Threads and main returns soon, but code contains non interruptible threads. |
Methods inherited from class org.apache.maven.plugin.testing.AbstractMojoTestCase |
---|
configureMojo, configureMojo, extractPluginConfiguration, extractPluginConfiguration, getVariablesAndValuesFromObject, getVariablesAndValuesFromObject, getVariableValueFromObject, lookupEmptyMojo, lookupEmptyMojo, lookupMojo, lookupMojo, lookupMojo, setUp, 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, tearDown |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExecJavaMojoTest()
Method Detail |
---|
public void testSimpleRun() throws Exception
Exception
public void testEmptySystemProperty() throws Exception
Exception
public void testIncorrectMainMethodSignature() throws Exception
Exception
private boolean stringContains(String str, String sequence)
public void testWaitNoDaemonThreads() throws Exception
Exception
public void testWaitNonInterruptibleDaemonThreads() throws Exception
Exception
public void testUncooperativeThread() throws Exception
Exception
public void testRunWithArgs() throws Exception
AbstractExecMojo
class
Exception
private String execute(File pom, String goal) throws Exception
Exception
private void setUpProject(File pomFile, org.apache.maven.plugin.AbstractMojo mojo) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |