Class CollectionTest
- java.lang.Object
-
- net.shibboleth.utilities.java.support.collection.CollectionTest
-
public class CollectionTest extends Object
GenericCollectiontester
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollectionTest.UpcaseFunction
-
Constructor Summary
Constructors Constructor Description CollectionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidtestArrayCollection(Collection<String> testCollection, Collection<String> knownGoodCollection)protected static voidtestIteratorCollection(Collection<String> testCollection, Collection<String> workCollection)Test the iterator.protected static voidtestSimpleCollection(Collection<String> collection, boolean allowDuplicates)voidverifyTests()
-
-
-
Field Detail
-
STRING_1
private static final String STRING_1
- See Also:
- Constant Field Values
-
STRING_2
private static final String STRING_2
- See Also:
- Constant Field Values
-
STRING_3
private static final String STRING_3
- See Also:
- Constant Field Values
-
nullRemoveFunction
public static final Function<String,Optional<? extends String>> nullRemoveFunction
-
-
Method Detail
-
verifyTests
public void verifyTests()
-
testArrayCollection
protected static void testArrayCollection(Collection<String> testCollection, Collection<String> knownGoodCollection)
-
testIteratorCollection
protected static void testIteratorCollection(Collection<String> testCollection, Collection<String> workCollection)
Test the iterator.- Parameters:
testCollection- The collection under test.workCollection- A collection of the same basic type (List or Set) to test with.
-
testSimpleCollection
protected static void testSimpleCollection(Collection<String> collection, boolean allowDuplicates)
-
-