|
|||||||||
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.JarSignMojoTest
public class JarSignMojoTest
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 | |
---|---|
JarSignMojoTest()
|
Method Summary | |
---|---|
void |
setUp()
|
void |
tearDown()
|
void |
testRunError()
|
void |
testRunFailure()
|
void |
testRunOK()
|
void |
testRunTwice()
We shouldn't sign the jar twice. |
void |
testVerifyInPlaceSignedJar()
|
void |
testVerifyJarGeneratedBySignOperation()
|
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 JarSignMojoTest()
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 testRunOK() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testVerifyJarGeneratedBySignOperation() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testVerifyInPlaceSignedJar() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public void testRunTwice() throws org.apache.maven.plugin.MojoExecutionException, IOException
org.apache.maven.plugin.MojoExecutionException
IOException
public void testRunFailure()
public void testRunError()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |