com.ssx.xml.output.impl
Class Test_AttributeListImpl

java.lang.Object
  extended byTestCase
      extended bycom.ssx.xml.output.impl.Test_AttributeListImpl

public class Test_AttributeListImpl
extends TestCase

The AttributeList class contains a variable number of Attributes. It allows the user to add and remove Attributes, iterate through the existing attribute set and find attributes by name.

See Also:
Serialized Form

Constructor Summary
Test_AttributeListImpl(String name)
           
 
Method Summary
 void testAddAttributes()
          Attributes can be added to the list.
 void testClearAttributes()
          All attributes can be cleared from the list.
 void testIterateAttributes()
          The list can provide an interator to traverse the Attribute set.
 void testNoDefensiveCopying()
          The given attribute object is added to the list and should not be re-used.
 void testSize()
          Size should return the number of attributes in the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test_AttributeListImpl

public Test_AttributeListImpl(String name)
Parameters:
name - The test suite name
Method Detail

testAddAttributes

public void testAddAttributes()
Attributes can be added to the list. Adding a null Attribute is not allowed. Adding an attriute with a null name is not allowed. Note: The given attribute object is added to the list and should not be re-used.


testNoDefensiveCopying

public void testNoDefensiveCopying()
The given attribute object is added to the list and should not be re-used. Changing the original wil change the object in the list.


testIterateAttributes

public void testIterateAttributes()
The list can provide an interator to traverse the Attribute set. The order in which the Attributes are traversed is not defined. The remove method of the iterator is not implemented.


testClearAttributes

public void testClearAttributes()
All attributes can be cleared from the list.


testSize

public void testSize()
Size should return the number of attributes in the collection