Package es.gob.afirma.signature
Class PadesSignerTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- es.gob.afirma.signature.AbstractSignatureTest
-
- es.gob.afirma.signature.PadesSignerTest
-
- All Implemented Interfaces:
junit.framework.Test
public class PadesSignerTest extends AbstractSignatureTest
Class that defines tests for
Project:PadesSigner.@Firma and TS@ Web Services Integration Platform.
- Version:
- 1.2, 14/03/2017.
-
-
Constructor Summary
Constructors Constructor Description PadesSignerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestCoSign()voidtestCoSignECC()voidtestCoSignWithRubric()voidtestCounter()voidtestCounterECC()voidtestCounterSignWithRubric()voidtestGetSignedData()Test for methodPadesSigner.getSignedData(byte[]).voidtestGetSignedDataParamNull()Test for methodPadesSigner.getSignedData(byte[]).voidtestSign()voidtestSignECC()voidtestSignWithRubric()voidtestSignWithTimestamp()voidtestUpgrade()Tests forPadesSigner.upgrade(byte[], List).voidtestValidate()Tests forPadesSigner.verifySignature(byte[]).voidtestValidateProtectedPDF()Tests forPadesSigner.verifySignature(byte[]).-
Methods inherited from class junit.framework.TestCase
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, countTestCases, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, toString
-
-
-
-
Method Detail
-
testSign
public final void testSign() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testSignECC
public final void testSignECC() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testSignWithTimestamp
public final void testSignWithTimestamp()
-
testUpgrade
public final void testUpgrade()
Tests forPadesSigner.upgrade(byte[], List).
-
testValidate
public final void testValidate()
Tests forPadesSigner.verifySignature(byte[]).
-
testValidateProtectedPDF
public final void testValidateProtectedPDF()
Tests forPadesSigner.verifySignature(byte[]).
-
testGetSignedData
public final void testGetSignedData()
Test for methodPadesSigner.getSignedData(byte[]).
-
testGetSignedDataParamNull
public final void testGetSignedDataParamNull()
Test for methodPadesSigner.getSignedData(byte[]).
-
testCoSign
public final void testCoSign() throws java.lang.ExceptionTest for methodPadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).- Throws:
java.lang.Exception- If the method fails.
-
testCoSignECC
public final void testCoSignECC() throws java.lang.ExceptionTest for methodPadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).- Throws:
java.lang.Exception- If the method fails.
-
testCounter
public final void testCounter() throws java.lang.ExceptionTest for methodPadesSigner.counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).- Throws:
java.lang.Exception- If the method fails.
-
testCounterECC
public final void testCounterECC() throws java.lang.ExceptionTest for methodPadesSigner.counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).- Throws:
java.lang.Exception- If the method fails.
-
testSignWithRubric
public final void testSignWithRubric() throws java.lang.ExceptionTest for methodPadesSigner.sign(byte[], String, String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).- Throws:
java.lang.Exception- If the method fails.
-
testCoSignWithRubric
public final void testCoSignWithRubric() throws java.lang.ExceptionTest for methodPadesSigner.coSign(byte[], byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String).- Throws:
java.lang.Exception- If the method fails.
-
testCounterSignWithRubric
public final void testCounterSignWithRubric() throws java.lang.ExceptionTest for methodPadesSigner.counterSign(byte[], String, java.security.KeyStore.PrivateKeyEntry, Properties, boolean, String, String, String).- Throws:
java.lang.Exception- If the method fails.
-
-