Package org.opensaml.messaging.context
Class BaseContextTest
- java.lang.Object
-
- org.opensaml.messaging.context.BaseContextTest
-
public class BaseContextTest extends Object
Test the BaseContext implementation.
-
-
Constructor Summary
Constructors Constructor Description BaseContextTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestAddRemoveSubcontexts()Test basic adding and removing of subcontexts.voidtestAddWith2Parents()Test adding a subcontext to a parent, and then adding it to another parent.voidtestBasicIteration()Test basic iteration of subcontexts.voidtestClearSubcontexts()Test clearing all subcontexts from the parent.voidtestDuplicateAddWithoutReplace()Test case of attempting to add a duplicate subcontext class to a parent, when replace is not in effect.voidtestDuplicateAddWithReplace()Test case of attempting to add a duplicate subcontext class to a parent, when replace is in effect.voidtestNoArgConstructor()Test the no-arg constructor.voidtestNoRemoveIterator()Test that calling remove() on the iterator throws the expected exception.voidtestSimpleStringAccess()voidtestSimpleStringError()voidtestStringAccess()voidtestStringAccessMissing()
-
-
-
Method Detail
-
testNoArgConstructor
public void testNoArgConstructor()
Test the no-arg constructor.
-
testAddRemoveSubcontexts
public void testAddRemoveSubcontexts()
Test basic adding and removing of subcontexts.
-
testClearSubcontexts
public void testClearSubcontexts()
Test clearing all subcontexts from the parent.
-
testBasicIteration
public void testBasicIteration()
Test basic iteration of subcontexts.
-
testNoRemoveIterator
public void testNoRemoveIterator()
Test that calling remove() on the iterator throws the expected exception.
-
testDuplicateAddWithReplace
public void testDuplicateAddWithReplace()
Test case of attempting to add a duplicate subcontext class to a parent, when replace is in effect.
-
testDuplicateAddWithoutReplace
public void testDuplicateAddWithoutReplace()
Test case of attempting to add a duplicate subcontext class to a parent, when replace is not in effect.
-
testAddWith2Parents
public void testAddWith2Parents()
Test adding a subcontext to a parent, and then adding it to another parent.
-
testStringAccess
public void testStringAccess() throws ClassNotFoundException- Throws:
ClassNotFoundException
-
testStringAccessMissing
public void testStringAccessMissing() throws ClassNotFoundException- Throws:
ClassNotFoundException
-
testSimpleStringAccess
public void testSimpleStringAccess() throws ClassNotFoundException- Throws:
ClassNotFoundException
-
testSimpleStringError
public void testSimpleStringError() throws ClassNotFoundException- Throws:
ClassNotFoundException
-
-