Package org.opensaml.messaging.context
Class BaseContextTest
java.lang.Object
org.opensaml.messaging.context.BaseContextTest
Test the BaseContext implementation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest basic adding and removing of subcontexts.voidTest adding a subcontext to a parent, and then adding it to another parent.voidTest basic iteration of subcontexts.voidTest clearing all subcontexts from the parent.voidTest case of attempting to add a duplicate subcontext class to a parent, when replace is not in effect.voidTest case of attempting to add a duplicate subcontext class to a parent, when replace is in effect.voidTest the no-arg constructor.voidTest that calling remove() on the iterator throws the expected exception.voidTest accessing context by truncated class name.voidTest accessing context using non-existent truncated class name.voidTest accessing context by class name.voidTest accessing missing context by class name.
-
Constructor Details
-
BaseContextTest
public BaseContextTest()
-
-
Method Details
-
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()Test accessing context by class name. -
testStringAccessMissing
public void testStringAccessMissing()Test accessing missing context by class name. -
testSimpleStringAccess
public void testSimpleStringAccess()Test accessing context by truncated class name. -
testSimpleStringError
public void testSimpleStringError()Test accessing context using non-existent truncated class name.
-