| org.apache.harmony.jndi.tests.javax.naming.CompositeNameTest
CompositeNameTest | public class CompositeNameTest extends TestCase (Code) | | unit test for composite name
|
Inner Class :public class MockCompositeName extends CompositeName | |
Method Summary | |
public void | TestConstructorNull() | protected void | setUp() | protected void | tearDown() | public void | testAddAllName() | public void | testAddAllintName() | public void | testAddString() | public void | testAddintString() | public void | testClone() | public void | testCompareTo() test compareTo(), include exceptional case, i.e, CompoundName, null, etc. | public void | testConstructorEnum() | public void | testConstructorException() | public void | testConstructorSimple() | public void | testEndsWith() | public void | testEquals() test equals, include exceptional case, i.e, CompoundName, null, etc. | public void | testGet() | public void | testGetAll() | public void | testGetPrefix() | public void | testGetSuffix() | public void | testHashCode() | public void | testIsEmpty() | public void | testRemove() | public void | testSerializationCompatibility() | public void | testSize() | public void | testSpecialCharacter() Special characters are as follows: The separator is / The escape
character is \ Quotes can be used - both single quotes and double quotes
are allowed. | public void | testStartsWith() | public void | testToString() | public void | testWriteReadObject() |
CompositeNameTest | public CompositeNameTest(String arg0)(Code) | | Constructor for TestCompositeName.
Parameters: arg0 - |
testAddString | public void testAddString() throws InvalidNameException(Code) | | test add(String), include exceptional case of null parameter
|
testConstructorEnum | public void testConstructorEnum()(Code) | | |
testGet | public void testGet()(Code) | | test get()
|
testGetAll | public void testGetAll()(Code) | | test getAll()
|
testGetPrefix | public void testGetPrefix()(Code) | | test getPrefix()
|
testGetSuffix | public void testGetSuffix()(Code) | | test getSuffix
|
testSerializationCompatibility | public void testSerializationCompatibility() throws Exception(Code) | | test serialization compatibility
throws: Exception - |
testSpecialCharacter | public void testSpecialCharacter() throws InvalidNameException(Code) | | Special characters are as follows: The separator is / The escape
character is \ Quotes can be used - both single quotes and double quotes
are allowed. This allows you to quote strings which contain chars such as /
which are part of a CompositeName element to avoid them being read as a
separator.
throws: InvalidNameException - |
|
|