|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.bouncycastle.asn1.test.SetSortedElementsTest
ASN1Set keeps its elements in DER order, in sortedElements, alongside the elements themselves: set at construction when that order is already known, otherwise computed and cached by the first DER encoding.
| Constructor Summary | |
SetSortedElementsTest()
|
|
| Method Summary | |
void |
testConcurrentFirstDEREncoding()
The first DER encoding of a SET not built in DER order - every SET the parser reads - sorts a copy of the elements and caches it. |
void |
testDERSetArrayConstructorRecordsSortedCopy()
The array constructor copies the caller's array, and sorts the copy for a DERSet; it used to record the caller's array, unsorted, as the DER order (github #2550). |
void |
testSingleElementSetDoesNotRetainCallerArray()
A set of one element needs no sorting, so it records its elements as their DER order at construction - for DLSet and BERSet too. |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SetSortedElementsTest()
| Method Detail |
public void testDERSetArrayConstructorRecordsSortedCopy()
public void testSingleElementSetDoesNotRetainCallerArray()
throws java.io.IOException
java.io.IOException
public void testConcurrentFirstDEREncoding()
throws java.lang.Exception
java.lang.Exception
|
Bouncy Castle Cryptography Library 1.87 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||