Class ClassIndexedSetTest
- java.lang.Object
-
- net.shibboleth.utilities.java.support.collection.ClassIndexedSetTest
-
public class ClassIndexedSetTest extends Object
Tests the ClassIndexedSet, using local Member interface as the underlying type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classClassIndexedSetTest.Aprivate classClassIndexedSetTest.AbstractMemberprivate classClassIndexedSetTest.Bprivate classClassIndexedSetTest.Cprivate classClassIndexedSetTest.Dprivate static interfaceClassIndexedSetTest.Member
-
Field Summary
Fields Modifier and Type Field Description private ClassIndexedSet<ClassIndexedSetTest.Member>memberSetSet to use as target for tests.
-
Constructor Summary
Constructors Constructor Description ClassIndexedSetTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestClear()Tests clearing the set.voidtestDupInstance()Test failure of adding a duplicate instance.voidtestDupType()Test failure of adding a duplicate member type.voidtestDupTypeWithReplacement()Test success of adding a duplicate member type with replacement.voidtestEqualsHash()voidtestGetType()Test getting member instance from set by type.voidtestIterator()Tests proper iterator iterating behavior.voidtestIteratorRemove()Tests proper iterator remove() behavior.voidtestIteratorRemoveIllegal()Tests proper iterator remove() behavior when called illegally.voidtestRemove()Tests removing member from set by instance.
-
-
-
Field Detail
-
memberSet
private ClassIndexedSet<ClassIndexedSetTest.Member> memberSet
Set to use as target for tests.
-
-
Method Detail
-
testDupInstance
public void testDupInstance()
Test failure of adding a duplicate instance.
-
testDupType
public void testDupType()
Test failure of adding a duplicate member type.
-
testDupTypeWithReplacement
public void testDupTypeWithReplacement()
Test success of adding a duplicate member type with replacement.
-
testGetType
public void testGetType()
Test getting member instance from set by type.
-
testRemove
public void testRemove()
Tests removing member from set by instance.
-
testClear
public void testClear()
Tests clearing the set.
-
testIterator
public void testIterator()
Tests proper iterator iterating behavior.
-
testIteratorRemove
public void testIteratorRemove()
Tests proper iterator remove() behavior.
-
testIteratorRemoveIllegal
public void testIteratorRemoveIllegal()
Tests proper iterator remove() behavior when called illegally.
-
testEqualsHash
public void testEqualsHash()
-
-