|
|||||||||
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.jar.JarSignVerifyMojoTest
public class JarSignVerifyMojoTest
These unit tests only check whether the generated command lines are correct. Really running the command would mean checking the results, which is too painful and not really a unit test. It would probably require to 'jarsigner -verify' the resulting signed jar and I believe it would make the code too complex with very few benefits.
Constructor Summary | |
---|---|
JarSignVerifyMojoTest()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
tearDown()
|
void |
testPleaseMaven()
|
void |
testRunError()
|
void |
testRunFailureNeverHappens()
|
void |
testRunFailureVerifyFailed()
|
void |
testRunOK()
|
void |
testRunOKAllArguments()
|
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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JarSignVerifyMojoTest()
Method Detail |
---|
public void setUp() throws IOException
setUp
in class junit.framework.TestCase
IOException
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testPleaseMaven()
public void testRunOK() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testRunOKAllArguments() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testRunFailureNeverHappens()
public void testRunFailureVerifyFailed()
public void testRunError()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |