Package org.bouncycastle.asn1.test
Class ASN1IntegerTest
- java.lang.Object
-
- org.bouncycastle.util.test.SimpleTest
-
- org.bouncycastle.asn1.test.ASN1IntegerTest
-
- All Implemented Interfaces:
Test
public class ASN1IntegerTest extends SimpleTest
-
-
Constructor Summary
Constructors Constructor Description ASN1IntegerTest()
-
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)
void
performTest()
void
testInvalidEncoding_00()
void
testInvalidEncoding_00_32bits()
void
testInvalidEncoding_ff()
void
testInvalidEncoding_ff_32bits()
void
testLooseValidEncoding_FF_32BAligned()
void
testLooseValidEncoding_FF_32BAligned_1not0()
void
testLooseValidEncoding_FF_32BAligned_2not0()
void
testLooseValidEncoding_zero_32BAligned()
void
testOversizedEncoding()
void
testValidEncodingMultiByte()
void
testValidEncodingSingleByte()
Ensure existing single byte behavior.
-
-
-
Method Detail
-
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
-
testValidEncodingSingleByte
public void testValidEncodingSingleByte() throws java.lang.Exception
Ensure existing single byte behavior.- Throws:
java.lang.Exception
-
testValidEncodingMultiByte
public void testValidEncodingMultiByte() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInvalidEncoding_00
public void testInvalidEncoding_00() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInvalidEncoding_ff
public void testInvalidEncoding_ff() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInvalidEncoding_00_32bits
public void testInvalidEncoding_00_32bits() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testInvalidEncoding_ff_32bits
public void testInvalidEncoding_ff_32bits() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLooseValidEncoding_zero_32BAligned
public void testLooseValidEncoding_zero_32BAligned() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLooseValidEncoding_FF_32BAligned
public void testLooseValidEncoding_FF_32BAligned() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLooseValidEncoding_FF_32BAligned_1not0
public void testLooseValidEncoding_FF_32BAligned_1not0() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testLooseValidEncoding_FF_32BAligned_2not0
public void testLooseValidEncoding_FF_32BAligned_2not0() throws java.lang.Exception
- Throws:
java.lang.Exception
-
testOversizedEncoding
public void testOversizedEncoding() throws java.lang.Exception
- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args)
-
-