org.apache.maven.plugin.jar
Class JarSignMojoTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.apache.maven.plugin.jar.JarSignMojoTest
- All Implemented Interfaces:
- Test
public class JarSignMojoTest
- extends TestCase
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.
- Version:
- $Id: JarSignMojoTest.java 728546 2008-12-21 22:56:51Z bentmann $
- Author:
- Jerome Lacoste
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 |
JarSignMojoTest
public JarSignMojoTest()
setUp
public void setUp()
throws IOException
- Overrides:
setUp
in class TestCase
- Throws:
IOException
tearDown
public void tearDown()
- Overrides:
tearDown
in class TestCase
testRunOK
public void testRunOK()
throws MojoExecutionException
- Throws:
MojoExecutionException
testVerifyJarGeneratedBySignOperation
public void testVerifyJarGeneratedBySignOperation()
throws MojoExecutionException
- Throws:
MojoExecutionException
testVerifyInPlaceSignedJar
public void testVerifyInPlaceSignedJar()
throws MojoExecutionException
- Throws:
MojoExecutionException
testRunTwice
public void testRunTwice()
throws MojoExecutionException,
IOException
- We shouldn't sign the jar twice.
On the second run, we simulated a created and signed jar.
- Throws:
MojoExecutionException
IOException
testRunFailure
public void testRunFailure()
testRunError
public void testRunError()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.