Package es.gob.afirma.testwebservices
Class NativeServicesTest
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- es.gob.afirma.testwebservices.NativeServicesTest
-
- All Implemented Interfaces:
junit.framework.Test
public class NativeServicesTest extends junit.framework.TestCaseClass that allows to tests the @Firma native services.
Project:@Firma and TS@ Web Services Integration Platform.
- Version:
- 1.0, 13/04/2015.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSHA1Constant attribute that represents the algorithm SHA1.
-
Constructor Summary
Constructors Constructor Description NativeServicesTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmethod010StoreDocument()Test for @Firma store document service.voidmethod020AlmacenarDocumento()Test for @Firma store document service.voidmethod030ValidarCertificado()Test for @Firma verify certificate service.voidmethod040ValidateCertificate()Test for @Firma verify certificate service.voidmethod050ObtenerInfoCertificado()Test for @Firma get info from certificate service.voidmethod060GetInfoCertificate()Test for @Firma get info from certificate service.voidmethod070FirmaServidor()Test for @Firma server signature service.voidmethod080ServerSignature()Test for @Firma server signature service.voidmethod090FirmaServidorCoSign()Test for @Firma server co-signature service.voidmethod100CoSignSignatureServer()Test for @Firma server co-signature service.voidmethod110FirmaServidorCounterSign()Test for @Firma server counter-signature service.voidmethod120ServerSignatureCounterSign()Test for @Firma server counter-signature service.voidmethod230ValidarFirma()Test for @Firma verify signature service.voidtestNativeServices()Test for @Firma store document service.-
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
-
-
-
-
Field Detail
-
SHA1
public static final java.lang.String SHA1
Constant attribute that represents the algorithm SHA1.- See Also:
- Constant Field Values
-
-
Method Detail
-
testNativeServices
public void testNativeServices() throws java.lang.ExceptionTest for @Firma store document service.- Throws:
java.lang.Exception- If the test fails.
-
method010StoreDocument
public void method010StoreDocument() throws java.lang.ExceptionTest for @Firma store document service.- Throws:
java.lang.Exception- If the test fails.
-
method020AlmacenarDocumento
public void method020AlmacenarDocumento() throws java.lang.ExceptionTest for @Firma store document service.- Throws:
java.lang.Exception- If the test fails.
-
method030ValidarCertificado
public void method030ValidarCertificado() throws java.lang.ExceptionTest for @Firma verify certificate service.- Throws:
java.lang.Exception- If the test fails.
-
method040ValidateCertificate
public void method040ValidateCertificate() throws java.lang.ExceptionTest for @Firma verify certificate service.- Throws:
java.lang.Exception- If the test fails.
-
method050ObtenerInfoCertificado
public void method050ObtenerInfoCertificado() throws java.lang.ExceptionTest for @Firma get info from certificate service.- Throws:
java.lang.Exception- If the test fails.
-
method060GetInfoCertificate
public void method060GetInfoCertificate() throws java.lang.ExceptionTest for @Firma get info from certificate service.- Throws:
java.lang.Exception- If the test fails.
-
method070FirmaServidor
public void method070FirmaServidor() throws java.lang.ExceptionTest for @Firma server signature service.- Throws:
java.lang.Exception- If the test fails.
-
method080ServerSignature
public void method080ServerSignature() throws java.lang.ExceptionTest for @Firma server signature service.- Throws:
java.lang.Exception- If the test fails.
-
method090FirmaServidorCoSign
public void method090FirmaServidorCoSign() throws java.lang.ExceptionTest for @Firma server co-signature service.- Throws:
java.lang.Exception- If the test fails.
-
method100CoSignSignatureServer
public void method100CoSignSignatureServer() throws java.lang.ExceptionTest for @Firma server co-signature service.- Throws:
java.lang.Exception- If the test fails.
-
method110FirmaServidorCounterSign
public void method110FirmaServidorCounterSign() throws java.lang.ExceptionTest for @Firma server counter-signature service.- Throws:
java.lang.Exception- If the test fails.
-
method120ServerSignatureCounterSign
public void method120ServerSignatureCounterSign() throws java.lang.ExceptionTest for @Firma server counter-signature service.- Throws:
java.lang.Exception- If the test fails.
-
method230ValidarFirma
public void method230ValidarFirma() throws java.lang.ExceptionTest for @Firma verify signature service.- Throws:
java.lang.Exception- If the test fails.
-
-