Package es.gob.afirma.signature
Class CadesSignerTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- es.gob.afirma.signature.AbstractSignatureTest
-
- es.gob.afirma.signature.CadesSignerTest
-
- All Implemented Interfaces:
junit.framework.Test
public class CadesSignerTest extends AbstractSignatureTest
Class that defines tests for
Project:CadesSigner.@Firma and TS@ Web Services Integration Platform.
- Version:
- 1.3, 06/03/2020.
-
-
Constructor Summary
Constructors Constructor Description CadesSignerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestCoSign()voidtestCoSignECC()voidtestCoSignWithTimestamp()Tests for generating CAdES co-signatures with timestamp.voidtestCounterSign()voidtestCounterSignECC()voidtestCounterSignWithTimestamp()Tests for generating CAdES counter-ignatures with timestamp.voidtestGetSignedDataCadesExplicit()Test for methodCadesSigner.getSignedData(byte[]).voidtestGetSignedDataCadesImplicit()Test for methodsCadesSigner.getSignedData(byte[]).voidtestSign()voidtestSignWithCertificateECC()voidtestSignWithTimestamp()Tests for generating CAdES signatures with timestamp.voidtestUpgrade()Tests forCadesSigner.upgrade(byte[], List).voidtestVerifySignature()Tests forCadesSigner.verifySignature(byte[], 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
-
testVerifySignature
public void testVerifySignature() throws java.lang.ExceptionTests forCadesSigner.verifySignature(byte[], byte[]).- Throws:
java.lang.Exception- If the test fails.
-
testSign
public void testSign() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testSignWithCertificateECC
public void testSignWithCertificateECC() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testCounterSign
public void testCounterSign() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testCounterSignECC
public void testCounterSignECC() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testCoSign
public void testCoSign() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testCoSignECC
public void testCoSignECC() throws java.lang.Exception- Throws:
java.lang.Exception- If the test fails.
-
testSignWithTimestamp
public void testSignWithTimestamp()
Tests for generating CAdES signatures with timestamp.
-
testCoSignWithTimestamp
public void testCoSignWithTimestamp()
Tests for generating CAdES co-signatures with timestamp.
-
testCounterSignWithTimestamp
public void testCounterSignWithTimestamp()
Tests for generating CAdES counter-ignatures with timestamp.
-
testUpgrade
public void testUpgrade()
Tests forCadesSigner.upgrade(byte[], List).
-
testGetSignedDataCadesImplicit
public final void testGetSignedDataCadesImplicit()
Test for methodsCadesSigner.getSignedData(byte[]).
-
testGetSignedDataCadesExplicit
public final void testGetSignedDataCadesExplicit()
Test for methodCadesSigner.getSignedData(byte[]).
-
-