Class NativeServicesTest

  • All Implemented Interfaces:
    junit.framework.Test

    public class NativeServicesTest
    extends junit.framework.TestCase

    Class 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.String SHA1
      Constant attribute that represents the algorithm SHA1.
    • Field Detail

      • SHA1

        public static final java.lang.String SHA1
        Constant attribute that represents the algorithm SHA1.
        See Also:
        Constant Field Values
    • Constructor Detail

      • NativeServicesTest

        public NativeServicesTest()
    • Method Detail

      • testNativeServices

        public void testNativeServices()
                                throws java.lang.Exception
        Test for @Firma store document service.
        Throws:
        java.lang.Exception - If the test fails.
      • method010StoreDocument

        public void method010StoreDocument()
                                    throws java.lang.Exception
        Test for @Firma store document service.
        Throws:
        java.lang.Exception - If the test fails.
      • method020AlmacenarDocumento

        public void method020AlmacenarDocumento()
                                         throws java.lang.Exception
        Test for @Firma store document service.
        Throws:
        java.lang.Exception - If the test fails.
      • method030ValidarCertificado

        public void method030ValidarCertificado()
                                         throws java.lang.Exception
        Test for @Firma verify certificate service.
        Throws:
        java.lang.Exception - If the test fails.
      • method040ValidateCertificate

        public void method040ValidateCertificate()
                                          throws java.lang.Exception
        Test for @Firma verify certificate service.
        Throws:
        java.lang.Exception - If the test fails.
      • method050ObtenerInfoCertificado

        public void method050ObtenerInfoCertificado()
                                             throws java.lang.Exception
        Test for @Firma get info from certificate service.
        Throws:
        java.lang.Exception - If the test fails.
      • method060GetInfoCertificate

        public void method060GetInfoCertificate()
                                         throws java.lang.Exception
        Test for @Firma get info from certificate service.
        Throws:
        java.lang.Exception - If the test fails.
      • method070FirmaServidor

        public void method070FirmaServidor()
                                    throws java.lang.Exception
        Test for @Firma server signature service.
        Throws:
        java.lang.Exception - If the test fails.
      • method080ServerSignature

        public void method080ServerSignature()
                                      throws java.lang.Exception
        Test for @Firma server signature service.
        Throws:
        java.lang.Exception - If the test fails.
      • method090FirmaServidorCoSign

        public void method090FirmaServidorCoSign()
                                          throws java.lang.Exception
        Test for @Firma server co-signature service.
        Throws:
        java.lang.Exception - If the test fails.
      • method100CoSignSignatureServer

        public void method100CoSignSignatureServer()
                                            throws java.lang.Exception
        Test for @Firma server co-signature service.
        Throws:
        java.lang.Exception - If the test fails.
      • method110FirmaServidorCounterSign

        public void method110FirmaServidorCounterSign()
                                               throws java.lang.Exception
        Test for @Firma server counter-signature service.
        Throws:
        java.lang.Exception - If the test fails.
      • method120ServerSignatureCounterSign

        public void method120ServerSignatureCounterSign()
                                                 throws java.lang.Exception
        Test for @Firma server counter-signature service.
        Throws:
        java.lang.Exception - If the test fails.
      • method230ValidarFirma

        public void method230ValidarFirma()
                                   throws java.lang.Exception
        Test for @Firma verify signature service.
        Throws:
        java.lang.Exception - If the test fails.