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.StringgetName()static voidmain(java.lang.String[] args)Main method to start testing manually outside productionvoidperformTest()voidtestInstantiationByVector()Checks that the values are correctly instantiatedvoidtestReadEncoded()Checks that a DLExternal is created from DER encoded bytes correctly.
-
-
-
Method Detail
-
testInstantiationByVector
public void testInstantiationByVector() throws java.lang.ExceptionChecks 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.ExceptionChecks 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:
getNamein interfaceTest- Specified by:
getNamein classSimpleTest
-
performTest
public void performTest() throws java.lang.Exception- Specified by:
performTestin 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)
-
-