Bouncy Castle Cryptography Library 1.66

org.bouncycastle.asn1.test
Class DLExternalTest

java.lang.Object
  extended byorg.bouncycastle.util.test.SimpleTest
      extended byorg.bouncycastle.asn1.test.DLExternalTest
All Implemented Interfaces:
Test

public class DLExternalTest
extends SimpleTest

Class checking the correct functionality of DLExternal


Constructor Summary
DLExternalTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
          Main method to start testing manually outside production
 void performTest()
           
 void testInstantiationByVector()
          Checks that the values are correctly instantiated
 void testReadEncoded()
          Checks that a DLExternal is created from DER encoded bytes correctly.
 
Methods inherited from class org.bouncycastle.util.test.SimpleTest
areEqual, areEqual, areEqual, fail, fail, fail, isEquals, isEquals, isEquals, isEquals, isEquals, isEquals, isTrue, isTrue, perform, runTest, runTest, runTests, runTests
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLExternalTest

public DLExternalTest()
Method Detail

testInstantiationByVector

public void testInstantiationByVector()
                               throws java.lang.Exception
Checks that the values are correctly instantiated

Throws:
java.lang.Exception - Will be thrown if there was an error while performing the test

testReadEncoded

public void testReadEncoded()
                     throws java.lang.Exception
Checks that a DLExternal is created from DER encoded bytes correctly. This is done by creating the DER encoded data by using getEncoded

Throws:
java.lang.Exception - Will be thrown if there was an error while performing the test

getName

public java.lang.String getName()
Specified by:
getName in interface Test
Specified by:
getName in class SimpleTest

performTest

public void performTest()
                 throws java.lang.Exception
Specified by:
performTest in class SimpleTest
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
Main method to start testing manually outside production

Parameters:
args - Calling arguments (not used here)

Bouncy Castle Cryptography Library 1.66