Class BaseContextTest


  • public class BaseContextTest
    extends Object
    Test the BaseContext implementation.
    • Constructor Detail

      • BaseContextTest

        public BaseContextTest()
    • 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.