org.openoces.ooapi.signatures
Class OpensignSignatureFactoryTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.openoces.ooapi.signatures.OpensignSignatureFactoryTest
All Implemented Interfaces:
junit.framework.Test

public class OpensignSignatureFactoryTest
extends junit.framework.TestCase

This class implements junit tests for the class OpensignSignature.

Author:
Carsten Raskgaard

Constructor Summary
OpensignSignatureFactoryTest()
           
 
Method Summary
 void testGenerationOfEmptySignature()
           
 void testGenerationOfNonXmlSignature()
           
 void testGenerationOfNullXmldsigDocument()
           
 void testGenerationOfValidOpensignSignatureWithInvalidSignatureValue()
           
 void testGenerationOfValidSignature()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpensignSignatureFactoryTest

public OpensignSignatureFactoryTest()
Method Detail

testGenerationOfNullXmldsigDocument

public void testGenerationOfNullXmldsigDocument()
                                         throws SignatureVerificationException,
                                                InternalException
Throws:
SignatureVerificationException
InternalException

testGenerationOfValidSignature

public void testGenerationOfValidSignature()
                                    throws SignatureVerificationException,
                                           InternalException
Throws:
SignatureVerificationException
InternalException

testGenerationOfEmptySignature

public void testGenerationOfEmptySignature()
                                    throws SignatureVerificationException,
                                           InternalException
Throws:
SignatureVerificationException
InternalException

testGenerationOfNonXmlSignature

public void testGenerationOfNonXmlSignature()
                                     throws SignatureVerificationException,
                                            InternalException
Throws:
SignatureVerificationException
InternalException

testGenerationOfValidOpensignSignatureWithInvalidSignatureValue

public void testGenerationOfValidOpensignSignatureWithInvalidSignatureValue()
                                                                     throws NonOpensignSignatureException,
                                                                            InternalException
Throws:
NonOpensignSignatureException
InternalException