public class SetSortedElementsTest
extends junit.framework.TestCase
| Constructor and Description |
|---|
SetSortedElementsTest() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic void testDERSetArrayConstructorRecordsSortedCopy()
public void testSingleElementSetDoesNotRetainCallerArray()
throws java.io.IOException
java.io.IOExceptionpublic void testConcurrentFirstDEREncoding()
throws java.lang.Exception
java.lang.Exception