Package org.bouncycastle.asn1.test
Class DLExternalTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.asn1.test.DLExternalTest
-
- All Implemented Interfaces:
Test
public class DLExternalTest extends SimpleTest
Class checking the correct functionality of DLExternal
-
-
Constructor Summary
Constructors Constructor Description DLExternalTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static void
main(java.lang.String[] args)
Main method to start testing manually outside productionvoid
performTest()
void
testInstantiationByVector()
Checks that the values are correctly instantiatedvoid
testReadEncoded()
Checks that a DLExternal is created from DER encoded bytes correctly.
-
-
-
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 usinggetEncoded
- 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 interfaceTest
- Specified by:
getName
in classSimpleTest
-
performTest
public void performTest() throws java.lang.Exception
- Specified by:
performTest
in classSimpleTest
- 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)
-
-