Package org.opensaml.core.xml.util
Class IndexedXMLObjectChildrenListTest
- java.lang.Object
-
- org.opensaml.core.xml.util.IndexedXMLObjectChildrenListTest
-
public class IndexedXMLObjectChildrenListTest extends Object
Test case forIndexedXMLObjectChildrenList. Note that this test only tests those methods that modify the list because everything else is delegated to theXMLObjectChildrenListwhich has it's own test cases that works all the other methods.
-
-
Field Summary
Fields Modifier and Type Field Description private SimpleXMLObjectBuildersxoBuilderprivate QNametype1private QNametype2
-
Constructor Summary
Constructors Constructor Description IndexedXMLObjectChildrenListTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAdd()Test the add method to make sure it creates the index correctly.voidtestRemove()Test to ensure removed items are removed from the index.voidtestSet()Test the set method to make sure it removes items that have been replaced from the index.voidtestSublist()Tests the sublist functionality.voidtestSublistClear()voidtestSublistIndexOf()Test sublist indexOf method.voidtestSublistLastIndexOf()Test sublist lastIndexOf method.
-
-
-
Field Detail
-
type1
private QName type1
-
type2
private QName type2
-
sxoBuilder
private SimpleXMLObjectBuilder sxoBuilder
-
-
Method Detail
-
testAdd
public void testAdd()
Test the add method to make sure it creates the index correctly.
-
testSet
public void testSet()
Test the set method to make sure it removes items that have been replaced from the index.
-
testRemove
public void testRemove()
Test to ensure removed items are removed from the index.
-
testSublist
public void testSublist()
Tests the sublist functionality.
-
testSublistIndexOf
public void testSublistIndexOf()
Test sublist indexOf method.
-
testSublistLastIndexOf
public void testSublistLastIndexOf()
Test sublist lastIndexOf method.
-
testSublistClear
public void testSublistClear()
-
-