Bouncy Castle Cryptography Library 1.66

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
ASN1IntegerTest()
           
 
Method Summary
 java.lang.String getName()
           
static void main(java.lang.String[] args)
           
 void performTest()
           
 void testInvalidEncoding_00_32bits()
           
 void testInvalidEncoding_00()
           
 void testInvalidEncoding_ff_32bits()
           
 void testInvalidEncoding_ff()
           
 void testLooseValidEncoding_FF_32BAligned_1not0()
           
 void testLooseValidEncoding_FF_32BAligned_2not0()
           
 void testLooseValidEncoding_FF_32BAligned()
           
 void testLooseValidEncoding_zero_32BAligned()
           
 void testOversizedEncoding()
           
 void testValidEncodingMultiByte()
           
 void testValidEncodingSingleByte()
          Ensure existing single byte behavior.
 
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

ASN1IntegerTest

public ASN1IntegerTest()
Method Detail

getName

public java.lang.String getName()
Overrides:
getName in class SimpleTest

performTest

public void performTest()
                 throws java.lang.Exception
Overrides:
performTest in class SimpleTest

testValidEncodingSingleByte

public void testValidEncodingSingleByte()
                                 throws java.lang.Exception
Ensure existing single byte behavior.

testValidEncodingMultiByte

public void testValidEncodingMultiByte()
                                throws java.lang.Exception

testInvalidEncoding_00

public void testInvalidEncoding_00()
                            throws java.lang.Exception

testInvalidEncoding_ff

public void testInvalidEncoding_ff()
                            throws java.lang.Exception

testInvalidEncoding_00_32bits

public void testInvalidEncoding_00_32bits()
                                   throws java.lang.Exception

testInvalidEncoding_ff_32bits

public void testInvalidEncoding_ff_32bits()
                                   throws java.lang.Exception

testLooseValidEncoding_zero_32BAligned

public void testLooseValidEncoding_zero_32BAligned()
                                            throws java.lang.Exception

testLooseValidEncoding_FF_32BAligned

public void testLooseValidEncoding_FF_32BAligned()
                                          throws java.lang.Exception

testLooseValidEncoding_FF_32BAligned_1not0

public void testLooseValidEncoding_FF_32BAligned_1not0()
                                                throws java.lang.Exception

testLooseValidEncoding_FF_32BAligned_2not0

public void testLooseValidEncoding_FF_32BAligned_2not0()
                                                throws java.lang.Exception

testOversizedEncoding

public void testOversizedEncoding()
                           throws java.lang.Exception

main

public static void main(java.lang.String[] args)

Bouncy Castle Cryptography Library 1.66