Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/LdapNameTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/LdapNameTest.java (revision 561320) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/LdapNameTest.java (working copy) @@ -299,9 +299,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive a - * non-null String, this string must be a valid string like - * SN=Lu\C4\8Di\C4\87. + * Here we are testing the constructor, this method should accept a non-null + * String, which must be a valid string like SN=Lu\C4\8Di\C4\87. *
** The expected result is an instance of LdapName. @@ -319,7 +318,7 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive a + * Here we are testing the constructor, this method should accept a * non-null String, and the DNs must be case insensitive. *
*@@ -338,8 +337,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive a - * blank String. + * Here we are testing the constructor, this method should accept an + * empty String. *
** The expected result an empty name, not null, empty. @@ -355,8 +354,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive - * String with correct format like "a=b", In this case we are gonna test the + * Here we are testing the constructor, this method should accept a String + * with the correct format like "a=b", In this case we are testing the * special characters "<" and ">". *
*@@ -381,8 +380,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive - * String with no correct format like "test". + * Here we are testing the constructor, this method should not accept a + * String with an incorrect format like "test". *
** The expected result is an InvalidNameException. @@ -416,8 +415,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive - * String with no correct format like "test". + * Here we are testing the constructor, this method should not accept a + * String with an incorrect format like "test". *
** The expected result is an InvalidNameException. @@ -475,8 +474,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive - * String with no correct format like "test". + * Here we are testing the constructor, this method should not accept a + * String with an incorrect format like "test". *
** The expected result is an InvalidNameException. @@ -511,7 +510,7 @@ * Test method for 'javax.naming.ldap.LdapName(String)' *
*- * Here we are testing the constructor method, this method should recive + * Here we are testing the constructor, this method should accept a * String notice here that here that we are testing the the special * character "<". *
@@ -556,7 +555,7 @@ * Test method for 'javax.naming.ldap.LdapName(String)' * *- * Here we are testing the constructor method, this method should recive + * Here we are testing the constructor, this method should accept a * String notice here that here that we are testing the the special * character "\". *
@@ -591,7 +590,7 @@ * Test method for 'javax.naming.ldap.LdapName(String)' * *- * Here we are testing the constructor method, this method should recive + * Here we are testing the constructor, this method should accept a * String notice here that here that we are testing the the special * character "+". *
@@ -629,9 +628,8 @@ * Test method for 'javax.naming.ldap.LdapName(String)' * *- * Here we are testing the constructor method, this method should recive - * String notice here that here that we are testing if nothing is sended - * between ','. + * Here we are testing the constructor with a String containing two + * consecutive commas. *
*
* The expected result is an exception.
@@ -654,7 +652,7 @@
* Test method for 'javax.naming.ldap.LdapName.LdapName(List
- * Here we are testing the constructor method of LdapName reciving a list of + * Here we are testing the constructor of LdapName with a list of * valid names. *
*
@@ -678,11 +676,10 @@
* Test method for 'javax.naming.ldap.LdapName.LdapName(List
- * Here we are testing the constructor method of LdapName reciving a null - * list. + * Here we are testing the constructor of LdapName with null. *
*- * The expected result is an exception of the type NullPointerException. + * The expected result is a NullPointerException. *
*/ public void testLdapNameListOfRdn002() { @@ -699,8 +696,8 @@ * Test method for 'javax.naming.ldap.LdapName.LdapName(List- * Here we are testing the constructor method of LdapName reciving a - * non-null list but empty one. + * Here we are testing the constructor of LdapName with a non-null but empty + * list. *
*
* The expected result is an instance of LdapName.
@@ -716,12 +713,12 @@
* Test method for 'javax.naming.ldap.LdapName.LdapName(List
- * Here we are testing the constructor method of LdapName reciving a list of - * valid names. + * Here we are testing the constructor of LdapName with a list of valid + * names. *
*- * The expected result is an instance of an object of LdapName, and also - * that the indexing is made like the other way around. + * The expected result is an instance of LdapName, with the indexing + * correct. *
*/ public void testLdapNameListOfRdn004() throws Exception { @@ -749,8 +746,8 @@ * Test method for 'javax.naming.ldap.LdapName.LdapName(List- * Here we are testing the constructor method of LdapName reciving a - * non-null list but here the list contains Rdns invalids. + * Here we are testing the constructor of LdapName with a + * non-null list containing invalid Rdns. *
** The expected result is an instance of LdapName. @@ -810,8 +807,8 @@ * Test method for 'javax.naming.ldap.LdapName.hashCode()' *
*- * Here we are testing the computed hash code of a blank String and the RDN - * in the LdapName. The String is a valid imput. + * Here we are testing the hash code of an empty String and the RDN in the + * LdapName. The String is a valid input. *
** The expected result is zero. @@ -826,8 +823,8 @@ * Test method for 'javax.naming.ldap.LdapName.hashCode()' *
*- * Here we are testing the computed hash code of a list of RDN and the - * hashcode of all LdapName. The list is a valid imput. + * Here we are testing the hash code of a list of RDNs and the + * hashcode of all LdapName. The list is a valid input. *
** The expected result is an assertion between the hashcode of the all RDNs @@ -849,8 +846,8 @@ * Test method for 'javax.naming.ldap.LdapName.hashCode()' *
*- * Here we are testing the computed hash code of a list of RDN and the - * hashcode of all LdapName. The list is valid imput. + * Here we are testing the hash code of an LdapName created with a list of + * RDNs. The list is valid input. *
** The expected result is an assertion between the hashcode of the all RDNs @@ -873,8 +870,8 @@ * Test method for 'javax.naming.ldap.LdapName.hashCode()' *
*- * Here we are testing the computed hash code of a non blank String and the - * RDN in the LdapName. The String is a valid imput. + * Here we are testing the hash code of a non-empty String and the + * RDN in the LdapName. The String is a valid input. *
** The expected result is the equals hash of two objects. @@ -893,12 +890,11 @@ * Test method for 'javax.naming.ldap.LdapName.equals(Object)' *
*- * Here we are testing that two LDAP names are equal. If obj as a parameter - * is a LdapName Object, the expected result is the comparison between the - * two ldapnames. + * Here we are testing the equals method for two LdapNames that are not + * equal. *
*- * The expected result is a false, the name are not eqaul. + * The expected result is false. *
*/ public void testEquals003() throws Exception { @@ -911,8 +907,7 @@ * Test method for 'javax.naming.ldap.LdapName.equals(Object)' * *- * Here we are testing that two LDAP names are equal. If obj as a parameter - * is a LdapName Object and the same,true is returned. + * Here we are testing the equals method for two equal LdapNames. *
** The expected result is true. @@ -947,7 +942,7 @@ * Test method for 'javax.naming.ldap.LdapName.clone()' *
*- * Here we are testing if this method generates a new copy of this name. + * Here we are testing if this method correctly clones this LdapName. *
** The expected result in this case is if a change in primary object no @@ -966,7 +961,7 @@ * Test method for 'javax.naming.ldap.LdapName.clone()' *
*- * Here we are testing if this method generates a new copy of this name. + * Here we are testing if this method correctly clones this LdapName. *
** The expected result in this case is if a change in the clone object no @@ -985,7 +980,7 @@ * Test method for 'javax.naming.ldap.LdapName.clone()' *
*- * Here we are testing if this method generates a new copy of this name. + * Here we are testing if this method correctly clones this LdapName. *
** The expected result in this case is if clone of an empty object is equal @@ -1003,8 +998,8 @@ * Test method for 'javax.naming.ldap.LdapName.toString()' *
*- * Here we are testing if the method returns a string representation of this - * LDAP name in a format defined by RFC 2253. + * Here we are testing if the method returns the correct string for an + * LdapName according to RFC 2253. *
** The expected results is a representation of this LDAP as we created it. @@ -1020,8 +1015,8 @@ * Test method for 'javax.naming.ldap.LdapName.toString()' *
*- * Here we are testing if the method returns a string representation of this - * LDAP name in a format defined by RFC 2253. + * Here we are testing if the method returns the correct string for an + * LdapName according to RFC 2253. *
** The expected results is a representation of this LDAP as we created it, @@ -1051,11 +1046,11 @@ * Test method for 'javax.naming.ldap.LdapName.toString()' *
*- * Here we are testing if the method returns a string representation of this - * LDAP name in a format defined by RFC 2253. + * Here we are testing if the method returns the correct string for an + * LdapName according to RFC 2253. *
*- * The expected results is that the name returns a blank. + * The expected results is that the name returns an empty string. *
*/ public void testToString003() throws Exception { @@ -1068,12 +1063,12 @@ * Test method for 'javax.naming.ldap.LdapName.toString()' * *- * Here we are testing if the method returns a string representation of this - * LDAP name in a format defined by RFC 2253. + * Here we are testing if the method returns the correct string for an + * LdapName according to RFC 2253. *
*- * The expected results is that the name returns the string just like it - * recived. + * The expected result is that the name returns the string exactly as given + * in the constructor. *
*/ public void testToString004() throws Exception { @@ -1086,12 +1081,12 @@ * Test method for 'javax.naming.ldap.LdapName.toString()' * *- * Here we are testing if the method returns a string representation of this - * LDAP name in a format defined by RFC 2253. + * Here we are testing if the method returns the correct string for an + * LdapName according to RFC 2253. *
*- * The expected results is that the name returns the string just like it - * recived. + * The expected results is that the name returns the string exactly as given + * in the constructor. *
*/ public void testToString005() throws Exception { @@ -1104,8 +1099,8 @@ * Test method for 'javax.naming.ldap.LdapName.size()' * *- * Here we are testing if this method retrieves the number of components in - * this LDAP name. + * Here we are testing if this method correctly returns the size of an + * LdapName. *
** The expected result is zero because the name is empty. @@ -1121,8 +1116,8 @@ * Test method for 'javax.naming.ldap.LdapName.size()' *
*- * Here we are testing if this method retrieves the number of components in - * this LDAP name. + * Here we are testing if this method correctly returns the size of an + * LdapName. *
** The expected result is the correct number of Rdns. @@ -1139,8 +1134,8 @@ * Test method for 'javax.naming.ldap.LdapName.size()' *
*- * Here we are testing if this method retrieves the number of components in - * this LDAP name. + * Here we are testing if this method correctly returns the size of an + * LdapName. *
** The expected result is the correct number of Rdns. In this case we are @@ -1158,8 +1153,8 @@ * Test method for 'javax.naming.ldap.LdapName.isEmpty()' *
*- * Here we are testing if this method determines whether this LDAP name is - * empty. + * Here we are testing if this method returns true when an LdapName is empty + * and false when it is not. *
** The expected result is a false. @@ -1174,8 +1169,8 @@ * Test method for 'javax.naming.ldap.LdapName.isEmpty()' *
*- * Here we are testing if this method determines whether this LDAP name is - * empty. + * Here we are testing if this method returns true when an LdapName is empty + * and false when it is not. *
** The expected result is a true. @@ -1192,8 +1187,8 @@ * Test method for 'javax.naming.ldap.LdapName.isEmpty()' *
*- * Here we are testing if this method determines whether this LDAP name is - * empty. + * Here we are testing if this method returns true when an LdapName is empty + * and false when it is not. *
** The expected result is a true. @@ -1209,8 +1204,8 @@ * Test method for 'javax.naming.ldap.LdapName.getAll()' *
*- * Here we are testing if this method retrieves the components of this name - * as an enumeration of strings. + * Here we are testing if this method correctly returns all the RDNs that + * make up this LdapName as Strings. *
** The expected result is if an empty name returns a non-null enumeration. @@ -1227,8 +1222,8 @@ * Test method for 'javax.naming.ldap.LdapName.getAll()' *
*- * Here we are testing if this method retrieves the components of this name - * as an enumeration of strings. + * Here we are testing if this method correctly returns all the RDNs that + * make up this LdapName as Strings. *
** The expected result is if a non empty name returns a non-null @@ -1246,8 +1241,8 @@ * Test method for 'javax.naming.ldap.LdapName.getAll()' *
*- * Here we are testing if this method retrieves the components of this name - * as an enumeration of strings. + * Here we are testing if this method correctly returns all the RDNs that + * make up this LdapName as Strings. *
** The expected result is if a non empty name returns a non-null @@ -1276,8 +1271,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index. *
** The expected result is if the returned string by this method is the @@ -1295,8 +1290,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index. *
** The expected result is an index out of bounds exception. @@ -1316,8 +1311,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index *
** The expected result is an index out of bounds exception. @@ -1337,8 +1332,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index. *
** The expected result is an index out of bounds exception. @@ -1358,8 +1353,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index. *
** The expected result is in this case the non null strings of the name that @@ -1380,8 +1375,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index. *
** The expected result is an exception like indexoutofbounds. @@ -1411,8 +1406,8 @@ * Test method for 'javax.naming.ldap.LdapName.get(int)' *
*- * Here we are testing if this method retrieves a component of this LDAP - * name as a string, notice that the index must be in the range [0,size()). + * Here we are testing if this method correctly returns the part of the + * LdapName that is at the specified index. *
** The expected result is if the returned string by this method is the @@ -1434,8 +1429,8 @@ * Test method for 'javax.naming.ldap.LdapName.getRdn(int)' *
*- * Here we are testing if this method retrieves an RDN of this LDAP name as - * an Rdn. + * Here we are testing if this method correctly returns the RDN contained in + * the LdapName that is at the specified index. *
** The expected result is a non null Rdn. @@ -1453,8 +1448,8 @@ * Test method for 'javax.naming.ldap.LdapName.getRdn(int)' *
*- * Here we are testing if this method retrieves an RDN of this LDAP name as - * an Rdn. + * Here we are testing if this method correctly returns the RDN contained in + * the LdapName that is at the specified index. *
** The expected result is an exception like IndexOutOfBounds. @@ -1475,8 +1470,8 @@ * Test method for 'javax.naming.ldap.LdapName.getRdn(int)' *
*- * Here we are testing if this method retrieves an RDN of this LDAP name as - * an Rdn. + * Here we are testing if this method correctly returns the RDN contained in + * the LdapName that is at the specified index. *
** The expected result is an exception like IndexOutOfBounds. @@ -1497,11 +1492,11 @@ * Test method for 'javax.naming.ldap.LdapName.getRdn(int)' *
*- * Here we are testing if this method retrieves an RDN of this LDAP name as - * an Rdn. + * Here we are testing if this method correctly returns the RDN contained in + * the LdapName that is at the specified index. *
*- * The expected result is an exception like IndexOutOfBounds. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testGetRdn004() throws Exception { @@ -1517,11 +1512,11 @@ * Test method for 'javax.naming.ldap.LdapName.getRdn(int)' * *- * Here we are testing if this method retrieves an RDN of this LDAP name as - * an Rdn. + * Here we are testing if this method correctly returns the RDN contained in + * the LdapName that is at the specified index. *
*- * The expected result is the rdn in the correct order. + * The expected result is the component RDNs returned in the correct order. *
*/ public void testGetRdn005() throws Exception { @@ -1536,8 +1531,8 @@ * Test method for 'javax.naming.ldap.LdapName.getPrefix(int)' * *- * Here we are testing if this method creates a name whose components - * consist of a prefix of the components of this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * prefix of this LdapName. *
** The expected result is in the position zero an empty name and in the @@ -1555,8 +1550,8 @@ * Test method for 'javax.naming.ldap.LdapName.getPrefix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a prefix of the components of this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * prefix of this LdapName. *
** The expected result is an IndexOutOfBaundsException if the range is not @@ -1578,8 +1573,8 @@ * Test method for 'javax.naming.ldap.LdapName.getPrefix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a prefix of the components of this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * prefix of this LdapName. *
** The expected result is an IndexOutOfBaundsException if the range is not @@ -1600,11 +1595,11 @@ * Test method for 'javax.naming.ldap.LdapName.getPrefix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a prefix of the components of this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * prefix of this LdapName. *
*- * The expected result is if the method recives a correct index like the + * The expected result is if the method accepts a correct index like the * size(), the expected result is the complete prefix name. *
*/ @@ -1619,11 +1614,11 @@ * Test method for 'javax.naming.ldap.LdapName.getPrefix(int)' * *- * Here we are testing if this method creates a name whose components - * consist of a prefix of the components of this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * prefix of this LdapName. *
*- * The expected result is if the method recives a correct index like the + * The expected result is if the method accepts a correct index like the * size(), the expected result is the complete prefix name, in this case * blank. *
@@ -1639,8 +1634,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' * *- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is a not null name. @@ -1658,8 +1653,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is a not null name but empty. @@ -1676,8 +1671,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is the suffix with the correct index. @@ -1694,8 +1689,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is an exception like IndexOutOfBounds. @@ -1715,8 +1710,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is an exception like IndexOutOfBounds. @@ -1736,8 +1731,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is the complete suffix with the correct index. @@ -1754,8 +1749,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is the suffix with the correct index. @@ -1772,8 +1767,8 @@ * Test method for 'javax.naming.ldap.LdapName.getSuffix(int)' *
*- * Here we are testing if this method creates a name whose components - * consist of a suffix of the components in this LDAP name. + * Here we are testing if this method correctly returns a Name that is a + * suffix of this LdapName. *
** The expected result is a not null name but empty. @@ -1791,8 +1786,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
** The expected result is a false. @@ -1810,8 +1805,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
** The expected result is a true. @@ -1829,8 +1824,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
** The expected result is a false. @@ -1848,8 +1843,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
** The expected result is a false. @@ -1867,8 +1862,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
** The expected result is a false. @@ -1885,8 +1880,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
** The expected result is a false. @@ -1903,8 +1898,8 @@ * Test method for 'javax.naming.ldap.LdapName.startsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name - * starts with a specified LDAP name prefix. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given prefix. *
*
* The expected result is a false.
@@ -1921,8 +1916,8 @@
* Test method for 'javax.naming.ldap.LdapName.startsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a prefix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given list of RDNs. *
*
* The expected result is false.
@@ -1938,8 +1933,8 @@
* Test method for 'javax.naming.ldap.LdapName.startsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a prefix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given list of RDNs. *
*
* The expected result is true.
@@ -1957,8 +1952,8 @@
* Test method for 'javax.naming.ldap.LdapName.startsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a prefix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given list of RDNs. *
*
* The expected result is true.
@@ -1974,8 +1969,8 @@
* Test method for 'javax.naming.ldap.LdapName.startsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a prefix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given list of RDNs. *
*
* The expected result is false.
@@ -1992,8 +1987,8 @@
* Test method for 'javax.naming.ldap.LdapName.startsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a prefix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given list of RDNs. *
*
* The expected result is true.
@@ -2009,8 +2004,8 @@
* Test method for 'javax.naming.ldap.LdapName.startsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a prefix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * starts with the given list of RDNs. *
** The expected result is true. @@ -2032,8 +2027,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
** The expected result is a false. @@ -2051,8 +2046,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
** The expected result is a true. @@ -2070,8 +2065,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
** The expected result is a true. @@ -2089,8 +2084,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
** The expected result is a true. @@ -2107,8 +2102,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
** The expected result is a true. @@ -2125,8 +2120,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
** The expected result is a false. @@ -2143,8 +2138,8 @@ * Test method for 'javax.naming.ldap.LdapName.endsWith(Name)' *
*- * Here we are testing if this method determines whether this LDAP name ends - * with a specified LDAP name suffix. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given name. *
*
* The expected result is a false.
@@ -2163,8 +2158,8 @@
* Test method for 'javax.naming.ldap.LdapName.endsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a suffix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given list of RDNs. *
*
* The expected result is if a null list of Rdns is sended, is a false.
@@ -2180,8 +2175,8 @@
* Test method for 'javax.naming.ldap.LdapName.endsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a suffix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given list of RDNs. *
*
* The expected result is if a non null list of Rdns is sended, is a true.
@@ -2198,8 +2193,8 @@
* Test method for 'javax.naming.ldap.LdapName.endsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a suffix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given list of RDNs. *
*
* The expected result is if a non null list of Rdns is sended, is a true.
@@ -2215,8 +2210,8 @@
* Test method for 'javax.naming.ldap.LdapName.endsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a suffix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given list of RDNs. *
*
* The expected result is if a non null list of Rdns is sended, is a false.
@@ -2233,8 +2228,8 @@
* Test method for 'javax.naming.ldap.LdapName.endsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a suffix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given list of RDNs. *
*
* The expected result is if a non null list of Rdns is sended, is a true.
@@ -2250,8 +2245,8 @@
* Test method for 'javax.naming.ldap.LdapName.endsWith(List
- * Here we are testing if this method determines whether the specified RDN - * sequence forms a suffix of this LDAP name. + * Here we are testing if this method correctly returns true if an LdapName + * ends with the given list of RDNs. *
** The expected result is if a non null list of Rdns is sended, is a true. @@ -2289,8 +2284,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(Name)' *
*- * Here we are testing if this method adds the components of a name -- in - * order -- to the end of this name. + * Here we are testing if this method correctly appends the components of a + * name to the end of this LdapName. *
** The expected result is if a null name is sended to add an @@ -2311,8 +2306,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(Name)' *
*- * Here we are testing if this method adds the components of a name -- in - * order -- to the end of this name. + * Here we are testing if this method correctly appends the components of a + * name to the end of this LdapName. *
** The expected result is if a non null name is sended to add, it must be in @@ -2330,8 +2325,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(Name)' *
*- * Here we are testing if this method adds the components of a name -- in - * order -- to the end of this name. + * Here we are testing if this method correctly appends the components of a + * name to the end of this LdapName. *
** The expected result is if a non null name is sended to add, it must be in @@ -2349,8 +2344,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(Name)' *
*- * Here we are testing if this method adds the components of a name -- in - * order -- to the end of this name. + * Here we are testing if this method correctly appends the components of a + * name to the end of this LdapName. *
** The expected result is if a non null name is sended to add, it must be in @@ -2368,8 +2363,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(Name)' *
*- * Here we are testing if this method adds the components of a name -- in - * order -- to the end of this name. + * Here we are testing if this method correctly appends the components of a + * name to the end of this LdapName. *
** The expected result is if a non null name is sended to add, it must be in @@ -2387,8 +2382,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(Name)' *
*- * Here we are testing if this method adds the components of a name -- in - * order -- to the end of this name. + * Here we are testing if this method correctly appends the components of a + * name to the end of this LdapName. *
*
* The expected result is if a non null name is sended to add, it must be in
@@ -2406,8 +2401,8 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * to the end of this name. + * Here we are testing if this method correctly appends the Rdns in the + * given List to the end of this LdapName. *
*
* The expected result is NullPointerException.
@@ -2427,8 +2422,8 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * to the end of this name. + * Here we are testing if this method correctly appends the Rdns in the + * given List to the end of this LdapName. *
*
* The expected result is the adding in the especified order.
@@ -2446,8 +2441,8 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * to the end of this name. + * Here we are testing if this method correctly appends the Rdns in the + * given List to the end of this LdapName. *
*
* The expected result is the adding in the especified order.
@@ -2465,8 +2460,8 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * to the end of this name. + * Here we are testing if this method correctly appends the Rdns in the + * given List to the end of this LdapName. *
*
* The expected result is the adding in the especified order.
@@ -2485,8 +2480,8 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * to the end of this name. + * Here we are testing if this method correctly appends the Rdns in the + * given List to the end of this LdapName. *
** The expected result is the adding in the especified order. @@ -2506,8 +2501,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, Name)' *
*- * Here we are testing if the method adds the components of a name -- in - * order -- at a specified position within this name. + * Here we are testing if this method correctly adds the components of the + * given Name to an LdapName at the given index. *
* The expected result is an IndexOutOfBounds Exception. *
@@ -2525,8 +2520,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, Name)' * *- * Here we are testing if the method adds the components of a name -- in - * order -- at a specified position within this name. + * Here we are testing if this method correctly adds the components of the + * given Name to an LdapName at the given index. *
* The expected result is an IndexOutOfBounds Exception. *
@@ -2544,8 +2539,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, Name)' * *- * Here we are testing if the method adds the components of a name -- in - * order -- at a specified position within this name. + * Here we are testing if this method correctly adds the components of the + * given Name to an LdapName at the given index. *
* The expected result is the adding of the name in the especified order. *
@@ -2561,8 +2556,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, Name)' * *- * Here we are testing if the method adds the components of a name -- in - * order -- at a specified position within this name. + * Here we are testing if this method correctly adds the components of the + * given Name to an LdapName at the given index. *
* The expected result is an NullPointer Exception. *
@@ -2581,10 +2576,10 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, Name)' * *- * Here we are testing if the method adds the components of a name -- in - * order -- at a specified position within this name. + * Here we are testing if this method correctly adds the components of the + * given Name to an LdapName at the given index. *
- * The expected result is the adding of the name in the especified order. + * The expected result is the adding of the name in the specified order. *
*/ public void testAddAllIntName005() throws Exception { @@ -2598,8 +2593,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, List- * Here we are testing if this method adds the RDNs of a name -- in order -- - * at a specified position within this name. + * Here we are testing if this method correctly adds the Rdns to an LdapName + * at the given index. *
*
* The expected result is a NullPointerException.
@@ -2619,11 +2614,11 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(int, List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * at a specified position within this name. + * Here we are testing if this method correctly adds the Rdns to an LdapName + * at the given index. *
*- * The expected result is an IndexOutOfBounds Exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testAddAllIntListOfRdn002() throws Exception { @@ -2642,8 +2637,8 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, List- * Here we are testing if this method adds the RDNs of a name -- in order -- - * at a specified position within this name. + * Here we are testing if this method correctly adds the Rdns to an LdapName + * at the given index. *
*
* The expected result is an IndexOutOfBounds Exception.
@@ -2666,11 +2661,11 @@
* Test method for 'javax.naming.ldap.LdapName.addAll(int, List
- * Here we are testing if this method adds the RDNs of a name -- in order -- - * at a specified position within this name. + * Here we are testing if this method correctly adds the Rdns to an LdapName + * at the given index. *
*- * The expected result is the adding of the list in the correct order. + * The expected result is the Rdns added in the correct order. *
*/ public void testAddAllIntListOfRdn004() throws Exception { @@ -2685,11 +2680,11 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, List- * Here we are testing if this method adds the RDNs of a name -- in order -- - * at a specified position within this name. + * Here we are testing if this method correctly adds the Rdns to an LdapName + * at the given index. *
*- * The expected result is the adding of the list in the correct order. + * The expected result is the Rdns added in the correct order. *
*/ public void testAddAllIntListOfRdn005() throws Exception { @@ -2705,11 +2700,11 @@ * Test method for 'javax.naming.ldap.LdapName.addAll(int, List- * Here we are testing if this method adds the RDNs of a name -- in order -- - * at a specified position within this name. + * Here we are testing if this method correctly adds the Rdns to an LdapName + * at the given index. *
*- * The expected result is the adding of the list in the correct order. + * The expected result is the Rdns added in the correct order. *
*/ public void testAddAllIntListOfRdn006() throws Exception { @@ -2724,11 +2719,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is null pointer exception. + * The expected result is NullPointerException. *
*/ public void testAddString001() throws Exception { @@ -2744,11 +2739,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is the adding of the single component. + * The expected result is the name added to the end of the LdapName. *
*/ public void testAddString002() throws Exception { @@ -2762,11 +2757,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is the adding of the single component. + * The expected result is the name added to the end of the LdapName. *
*/ public void testAddString003() throws Exception { @@ -2781,11 +2776,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is the adding of the single component. + * The expected result is the name added to the end of the LdapName. *
*/ public void testAddString004() throws Exception { @@ -2799,11 +2794,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is the adding of the single component. + * The expected result is the name added to the end of the LdapName. *
*/ public void testAddString005() throws Exception { @@ -2818,11 +2813,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is the adding of the single component. + * The expected result is the name added to the end of the LdapName. *
*/ public void testAddString006() throws Exception { @@ -2837,11 +2832,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(String)' * *- * Here we are testing if this method adds a single component to the end of - * this LDAP name. + * Here we are testing if this method correctly appends a name to the end of + * an LdapName. *
*- * The expected result is the adding of the single component. + * The expected result is the name added to the end of the LdapName. *
*/ public void testAddString007() throws Exception { @@ -2858,11 +2853,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(Rdn)' * *- * Here we are testing if this method adds a single RDN to the end of this - * LDAP name. + * Here we are testing if this method correctly appends an RDN to the end of + * an LdapName. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddRdn001() throws Exception { @@ -2876,11 +2871,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(Rdn)' * *- * Here we are testing if this method adds a single RDN to the end of this - * LDAP name. + * Here we are testing if this method correctly appends an RDN to the end of + * an LdapName. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddRdn002() throws Exception { @@ -2894,11 +2889,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(Rdn)' * *- * Here we are testing if this method adds a single RDN to the end of this - * LDAP name. + * Here we are testing if this method correctly appends an RDN to the end of + * an LdapName. *
*- * The expected result is a nullpointer exception. + * The expected result is a NullPointerException. *
*/ public void testAddRdn003() throws Exception { @@ -2915,11 +2910,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(Rdn)' * *- * Here we are testing if this method adds a single RDN to the end of this - * LDAP name. + * Here we are testing if this method correctly appends an RDN to the end of + * an LdapName. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddRdn004() throws Exception { @@ -2934,11 +2929,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(Rdn)' * *- * Here we are testing if this method adds a single RDN to the end of this - * LDAP name. + * Here we are testing if this method correctly appends an RDN to the end of + * an LdapName. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddRdn005() throws Exception { @@ -2953,11 +2948,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(Rdn)' * *- * Here we are testing if this method adds a single RDN to the end of this - * LDAP name. + * Here we are testing if this method correctly appends an RDN to the end of + * an LdapName. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddRdn006() throws Exception { @@ -2972,11 +2967,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is an index out boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testAddIntString001() throws Exception { @@ -2992,11 +2987,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is an index out boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testAddIntString002() throws Exception { @@ -3012,11 +3007,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is a null pointer exception. + * The expected result is a NullPointerException. *
*/ public void testAddIntString003() throws Exception { @@ -3033,11 +3028,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the name being inserted in the correct position. *
*/ public void testAddIntString004() throws Exception { @@ -3052,11 +3047,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the name being inserted in the correct position. *
*/ public void testAddIntString005() throws Exception { @@ -3070,11 +3065,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the name being inserted in the correct position. *
*/ public void testAddIntString006() throws Exception { @@ -3089,11 +3084,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the name being inserted in the correct position. *
*/ public void testAddIntString007() throws Exception { @@ -3108,11 +3103,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, String)' * *- * Here we are testing if this method adds a single component at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds a name to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the name being inserted in the correct position. *
*/ public void testAddIntString008() throws Exception { @@ -3127,11 +3122,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is an index out boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testAddIntRdn001() throws Exception { @@ -3149,11 +3144,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is an index out boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testAddIntRdn002() throws Exception { @@ -3170,11 +3165,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is a null pointer exception. + * The expected result is a NullPointerException. *
*/ public void testAddIntRdn003() throws Exception { @@ -3191,11 +3186,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddIntRdn004() throws Exception { @@ -3210,11 +3205,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddIntRdn005() throws Exception { @@ -3229,11 +3224,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddIntRdn006() throws Exception { @@ -3248,11 +3243,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddIntRdn007() throws Exception { @@ -3266,11 +3261,11 @@ * Test method for 'javax.naming.ldap.LdapName.add(int, Rdn)' * *- * Here we are testing if this method adds a single RDN at a specified - * position within this LDAP name. + * Here we are testing if this method correctly adds an RDN to an + * LdapName at the given index. *
*- * The expected result is the adding in the correct order. + * The expected result is the Rdn being inserted in the correct position. *
*/ public void testAddIntRdn008() throws Exception { @@ -3284,11 +3279,11 @@ * Test method for 'javax.naming.ldap.LdapName.remove(int)' * *- * Here we are testing if this method removes a component from this LDAP - * name. + * Here we are testing if this method correctly removes the name at the + * specified index from an LdapName. *
*- * The expected result is an index out of boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testRemove001() throws Exception { @@ -3309,11 +3304,11 @@ * Test method for 'javax.naming.ldap.LdapName.remove(int)' * *- * Here we are testing if this method removes a component from this LDAP - * name. + * Here we are testing if this method correctly removes the name at the + * specified index from an LdapName. *
*- * The expected result is that the name remove the name in the given order. + * The expected result is that the name at the specified index is removed. *
*/ public void testRemove003() throws Exception { @@ -3327,11 +3322,11 @@ * Test method for 'javax.naming.ldap.LdapName.remove(int)' * *- * Here we are testing if this method removes a component from this LDAP - * name. + * Here we are testing if this method correctly removes the name at the + * specified index from an LdapName. *
*- * The expected result is that the name remove the name in the given order. + * The expected result is that the name at the specified index is removed. *
*/ public void testRemove004() throws Exception { @@ -3345,11 +3340,11 @@ * Test method for 'javax.naming.ldap.LdapName.remove(int)' * *- * Here we are testing if this method removes a component from this LDAP - * name. + * Here we are testing if this method correctly removes the name at the + * specified index from an LdapName. *
*- * The expected result is an index out of boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testRemove005() throws Exception { @@ -3365,11 +3360,11 @@ * Test method for 'javax.naming.ldap.LdapName.remove(int)' * *- * Here we are testing if this method removes a component from this LDAP - * name. + * Here we are testing if this method correctly removes the name at the + * specified index from an LdapName. *
*- * The expected result is an index out of boundary exception. + * The expected result is an IndexOutOfBoundsException. *
*/ public void testRemove006() throws Exception { @@ -3382,11 +3377,11 @@ * Test method for 'javax.naming.ldap.LdapName.getRdns()' * *- * Here we are testing if this method retrieves the list of relative - * distinguished names. + * Here we are testing if this method correctly returns the contents of this + * LdapName as a list of Rdns. *
*- * The expected result is the list of rdns. + * The expected result is the list of Rdns. *
*/ public void testGetRdns001() throws Exception { @@ -3400,11 +3395,11 @@ * Test method for 'javax.naming.ldap.LdapName.getRdns()' * *- * Here we are testing if this method retrieves the list of relative - * distinguished names. + * Here we are testing if this method correctly returns the contents of this + * LdapName as a list of Rdns. *
*- * The expected result is the list of rdns. + * The expected result is the list of Rdns. *
*/ public void testGetRdns002() throws Exception { @@ -3427,8 +3422,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' * *- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a classcastException. @@ -3448,8 +3443,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a positive int. @@ -3466,11 +3461,11 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares the LdapName with + * the given object. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo003() throws Exception { @@ -3496,8 +3491,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' * *- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a negative int. @@ -3514,8 +3509,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a positive int. @@ -3532,8 +3527,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a negative int. @@ -3550,11 +3545,11 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo007() throws Exception { @@ -3568,8 +3563,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' * *- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a negative int. @@ -3586,8 +3581,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a negative int. @@ -3604,8 +3599,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a negative int. @@ -3622,8 +3617,8 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
** The expected result is a positive int. @@ -3640,11 +3635,11 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' *
*- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo012() throws Exception { @@ -3658,11 +3653,11 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' * *- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo013() throws Exception { @@ -3676,11 +3671,11 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' * *- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo014() throws Exception { @@ -3694,11 +3689,11 @@ * Test method for 'javax.naming.ldap.LdapName.compareTo(Object)' * *- * Here we are testing if this method compares this LdapName with the - * specified Object for order. + * Here we are testing if this method correctly compares an LdapName with + * the given object. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo015() throws Exception { Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/RdnTest.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/RdnTest.java (revision 561320) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/RdnTest.java (working copy) @@ -164,8 +164,7 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' * *- * Here in this case we are testing to construct an Rdn from the given - * attribute set. Here we are testing if we send a null attribute set. + * Here in this case we are testing the constructor with a null attribute set. *
** The expected result is a null pointer exception. @@ -183,8 +182,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' *
*- * Here in this case we are testing to construct an Rdn from the given - * attribute set. Here we are testing if we send an empty attribute set. + * Here in this case we are testing the constructor with an empty attribute + * set. *
** The expected result is an invalid name exception. @@ -203,8 +202,7 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' *
*- * Here in this case we are testing to construct an Rdn from the given - * attribute set. Here we are testing if we send a not empty attribute set, + * Here in this case we are testing to the constructor with a non-empty attribute set, * but here we are testing if the values are used literally (not parsed) and * assumed to be unescaped. *
@@ -223,9 +221,9 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' * *- * This is the test method for the constructor of the class Rdn, in this + * This is a test for the constructor of the class Rdn, in this * case we are testing to construct an Rdn from the given attribute set. - * Here we are testing if we send a not empty attribute set, but here we are + * Here we are testing with a non-empty attribute set, but here we are * testing if the values are used literally (not parsed) and assumed to be * unescaped. *
@@ -244,9 +242,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given attribute set. - * Here we are testing if we send a not empty attribute set but here we are + * This is a test method for the constructor of the class Rdn. + * Here we are testing with a non-empty attribute set but here we are * testing if the values are used literally (not parsed) and assumed to be * unescaped. *
@@ -265,9 +262,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given attribute set. - * Here we are testing if we send a not empty attribute set but here we are + * This is a test method for the constructor of the class Rdn. + * Here we are testing with a non-empty attribute set but here we are * testing if the values are used literally (not parsed) and assumed to be * unescaped. *
@@ -285,9 +281,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Attributes)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given attribute set. - * Here we are testing if we send a not empty attribute set. + * This is a test method for the constructor of the class Rdn. + * Here we are testing with a non-empty attribute set. *
** The expected result is an exception. @@ -307,9 +302,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a null String. + * This is a test method for the constructor of the class Rdn. Here we + * are testing with a null String. *
** The expected result is a null pointer exception. @@ -327,9 +321,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send an empty String. + * This is a test for the constructor of the class Rdn. Here we are + * testing with an empty String. *
** The expected result is an instance of the class. @@ -344,9 +337,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a non empty String but with no valid format. + * This is a test for the constructor of the class Rdn. Here we are + * testing with a non-empty String but with an invalid format. *
** The expected result is invalid name exception. @@ -371,14 +363,12 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a non empty String with a valid format, in this - * case we use the especial character "+", and we are given here a type with - * no value. + * This is a test for the constructor of the class Rdn. Here we are + * testing with a non-empty String with a valid format, in this case we use + * the special character "+", and we are given here a type with no value. *
*- * The expected result is an instance not null of Rdn. + * The expected result is a non-null instance of Rdn. *
*/ public void testRdnString006() throws Exception { @@ -391,11 +381,10 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a non empty String but with valid format, in this - * case we use the especial character "=", and we are given here a type with - * no value, and type is quoted.. + * This is a test for the constructor of the class Rdn. Here we are + * testing with a non-empty String but with valid format, in this case we + * use the special character "=", and we are given here a type with no + * value, and type is quoted.. *
** The expected result is an exception like Invalid name exception. @@ -415,10 +404,9 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a non empty String but with valid format, in this - * case we use the especial character "=". + * This is a test for the constructor of the class Rdn. Here we are + * testing with a non-empty String but with valid format, in this case we + * use the special character "=". *
** The expected result is an instance of rdn. @@ -444,12 +432,11 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a non empty String but with valid format. + * This is a test for the constructor of the class Rdn. Here we + * are testing with a non-empty String but with valid format. *
*- * The expected result is an instance of rdn. + * The expected result is an instance of Rdn. *
*/ public void testRdnString016() throws Exception { @@ -529,12 +516,11 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String. Here we - * are testing if we send a non empty String but with invalid format. + * This is a test for the constructor of the class Rdn. Here we + * are testing with a non-empty String but with invalid format. *
*- * The expected result is an invalid name exception. + * The expected result is an InvalidNameException. *
*/ public void testRdnString026() { @@ -558,12 +544,11 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Rdn)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given Rdn. Here we are - * testing if we send a null Rdn. + * This is a test for the constructor of the class Rdn. Here we are + * testing with a null Rdn. *
*- * The expected result is a null pointer exception. + * The expected result is a NullPointerException. *
*/ public void testRdnRdn001() { @@ -578,12 +563,11 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(Rdn)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given Rdn. Here we are - * testing if we send a non null Rdn. + * This is a test for the constructor of the class Rdn. Here we are + * testing with a non-null Rdn. *
*- * The expected result is another Rdn with a copy of the given one. + * The expected result is a new Rdn, which is a copy of the given one. *
*/ public void testRdnRdn002() throws Exception { @@ -604,13 +588,12 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String, Object)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String and Object. - * Here we are testing if we send a null String and null object as the + * This is a test method for the constructor of the class Rdn. + * Here we are testing with a null String and null object as the * parameters. *
*- * The expected result is a null pointer exception. + * The expected result is a NullPointerException. *
*/ public void testRdnStringObject001() throws Exception { @@ -640,10 +623,9 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String, Object)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String and Object. - * Here we are testing if we send a non null String with a non null object - * but the type here has a special character like "+" this must be permited. + * This is a test for the constructor of the class Rdn. Here we are testing + * with a non-null String and a non-null object but the type here has a + * special character like "+", which should be permited. *
** The expected result is an instance not null of Rdn. @@ -663,13 +645,11 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String, Object)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String and Object. - * Here we are testing if we send a non empty String and this one not ok - * with diferents objects. + * This is a test for the constructor of the class Rdn. Here we are testing + * with a non-empty String and different objects. *
*- * The expected result is an instance of the class with the diferents + * The expected result is an instance of the class with the different * arguments because the arguments are not parsed. *
*/ @@ -684,10 +664,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String, Object)' * *- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String and Object. - * Here we are testing if we send a non empty String and this one not ok - * with diferents objects. + * This is a test for the constructor of the class Rdn. Here we are testing + * with a non-empty String and diferents objects. *
** The expected result is an instance of the class with the diferents @@ -705,9 +683,8 @@ * Test method for 'javax.naming.ldap.Rdn.Rdn(String, Object)' *
*- * This is the test method for the constructor of the class Rdn, in this - * case we are testing to construct an Rdn from the given String and Object. - * Here we are testing if we send a non empty String and a non empty object. + * This is a test for the constructor of the class Rdn. Here we are testing + * with a non-empty String and a non-empty object. *
** The expected result is an instance of the class because the arguments are @@ -726,13 +703,11 @@ * Test method for 'javax.naming.ldap.Rdn.hashCode()' *
*- * Here we are testing if this method returns the hash code of this RDN, in - * this case we are testing if the hashcode returned by this method is the - * correct one, the only hash that we know something is of the Rdn empty, - * this hash has to be zero. + * Here we are testing if the hashcode returned by this method is the + * correct one. The hashcode for an empty Rdn should be zero. *
*- * The expected result is the hashcode of the rdn. + * The expected result is the hashcode of the Rdn. *
*/ public void testHashCode001() throws Exception { @@ -769,8 +744,7 @@ * Test method for 'javax.naming.ldap.Rdn.equals(Object)' * *- * Here we are testing if this method compares the specified Object with - * this Rdn for equality. In this case we are sending a null object. + * Here we are testing the equals method with a null object. *
** The expected result is false. @@ -813,11 +787,10 @@ * Test method for 'javax.naming.ldap.Rdn.equals(Object)' *
*- * Here we are testing if this method compares the specified Object with - * this Rdn for equality. In this case we are sending equals rdns. + * Here we are testing the equals method with equal Rdns. *
*- * The expected result is exception here. + * The expected result is an exception. *
*/ public void testEquals017() throws Exception { @@ -824,7 +797,7 @@ try { new Rdn("t", new char[] { 'a', 'v' }).equals(new Rdn("t", new char[] { 'a', 'v' })); - fail("Should raise an exception."); + fail("Should throw an exception."); } catch (ClassCastException e) {} try { @@ -830,7 +803,7 @@ try { new Rdn("t", new int[] { 00 }) .equals(new Rdn("t", new int[] { 00 })); - fail("Should raise an exception."); + fail("Should throw an exception."); } catch (ClassCastException e) {} try { @@ -836,7 +809,7 @@ try { new Rdn("t", new BasicControl("t")).equals(new Rdn("t", new BasicControl("t"))); - fail("Should raise an exception."); + fail("Should throw an exception."); } catch (ClassCastException e) {} } @@ -864,12 +837,12 @@ * ** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. *
*- * The expected result is an non empty string an eqaul to the one used by to - * create the rdn. + * The expected result is an non-empty string an equal to the one used to + * create the Rdn. *
*/ public void testToString002() throws Exception { @@ -884,14 +857,14 @@ * ** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn contains multi-values so the string must be a concatenation of the + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. The Rdn in this test contains + * multiple values so the string returned must be a concatenation of the * strings. *
*- * The expected result is an non empty string an eqaul to the one used by to - * create the rdn. + * The expected result is an non-empty string an equal to the one used by to + * create the Rdn. *
*/ public void testToString003() throws Exception { @@ -905,15 +878,15 @@ * Test method for 'javax.naming.ldap.Rdn.toString()' * *- * Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn contains multi-values and quoted values so the string must be a - * concatenation of strings and values quoted must in ascii. + * Here we are testing if this method returns the correct string of a Rdn + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. The Rdn in this test contains + * multiple values so the string returned must be a concatenation of the + * strings and values quoted must be in Ascii. *
*- * The expected result is an non empty string an eqaul to the one used by to - * create the rdn. + * The expected result is an non-empty string an equal to the one used by to + * create the Rdn. *
*/ public void testToString004() throws Exception { @@ -927,13 +900,13 @@ * Test method for 'javax.naming.ldap.Rdn.toString()' * *- * Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn contains quoted values so the string must be must in ascii. + * Here we are testing if this method returns the correct string of a Rdn + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. Here the Rdn contains quoted + * values so the string returned must be in Ascii. *
*- * The expected result is an non empty string an eqaul to the one used by to + * The expected result is an non-empty string an equal to the one used by to * create the rdn. *
*/ @@ -949,14 +922,13 @@ * ** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn contains quoted values so the string must be must in ascii also - * contains two special characters but like character so they must be in the - * string. + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. Here the rdn contains quoted + * values so the string must be in ascii. It also contains two special + * characters that must be in the string returned. *
*- * The expected result is an non empty string an eqaul to the one used by to + * The expected result is an non-empty string an equal to the one used by to * create the rdn. *
*/ @@ -972,9 +944,9 @@ * ** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn is created with an object that contains an array of primitives. + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. Here the rdn is created with an + * object that contains an array of primitives. *
** The expected result is the string with the object parsed. @@ -992,9 +964,9 @@ *
** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn is created with an object that contains an array of primitives. + * that we create, notice here that Rdn created by us is non-empty so the + * string returned must be also non-empty. Here the rdn is created with an + * object that contains an array of primitives. *
** The expected result is an exception. @@ -1005,7 +977,7 @@ Rdn rdn = new Rdn("t", t); try { rdn.toString(); - fail("Should raise an exception."); + fail("Should throw an exception."); } catch (ClassCastException e) {} } @@ -1015,14 +987,14 @@ *
** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn contains multi-values and quoted values so the string must be a - * concatenation of strings and values quoted must in ascii. + * that we create, notice here that the Rdn created by us is non-empty so + * the string returned must be also non-empty. Here the Rdn contains + * multiple values and quoted values so the string must be a concatenation + * of the strings and quoted values must be in ascii. *
*- * The expected result is an non empty string an eqaul to the one used by to - * create the rdn. + * The expected result is an non-empty string equal to the one used to + * create the Rdn. *
*/ public void testToString009() throws Exception { @@ -1037,14 +1009,14 @@ * ** Here we are testing if this method give us the correct string of a Rdn - * that we create, notice here that Rdn created by us is not empty so the - * string returned must be also not empty. Here is the paricularity that the - * rdn contains multi-values and quoted values so the string must be a - * concatenation of strings and values quoted must in ascii. + * that we create, notice here that the Rdn created by us is non-empty so + * the string returned must be also non-empty. Here the Rdn contains + * multiple values and quoted values so the string must be a concatenation + * of the strings and quoted values must be in ascii. *
*- * The expected result is an non empty string an eqaul to the one used by to - * create the rdn. + * The expected result is an non-empty string equal to the one used to + * create the Rdn. *
*/ public void testToString010() throws Exception { @@ -1064,8 +1036,8 @@ * Test method for 'javax.naming.ldap.Rdn.getValue()' * *- * Here we are testing if this method retrieves one of this Rdn's value. In - * this case should raise an exception because the rdn is empty. + * Here we are testing if this method returns one of the Rdn's values. In + * this case it should throw an exception because the Rdn is empty. *
** The expected result is an exception. @@ -1075,7 +1047,7 @@ Rdn rdn = new Rdn(""); try { rdn.getValue(); - fail("Should raise an exception."); + fail("Should throw an exception."); } catch (IndexOutOfBoundsException e) {} } @@ -1084,8 +1056,9 @@ * Test method for 'javax.naming.ldap.Rdn.getValue()' *
*- * Here we are testing if this method retrieves one of this Rdn's value. In - * this case if returns an object not null when a not empty name is created. + * Here we are testing if this method returns one of the Rdn's values. In this + * case it should return an Object that is not null when a non-empty name is + * used. *
*/ public void testGetValue002() throws Exception { @@ -1110,8 +1083,9 @@ * Test method for 'javax.naming.ldap.Rdn.getValue()' * *- * Here we are testing if this method retrieves one of this Rdn's value. In - * this case if returns an object not null when a not empty name is created. + * Here we are testing if this method returns one of the Rdn's values. In this + * case it should return an Object that is not null when a non-empty name is + * used. *
*/ public void testGetValue014() throws Exception { @@ -1128,11 +1102,11 @@ /** *- * Test method for 'javax.naming.ldap.Rdn.getValue()' + * Test method for 'javax.naming.ldap.Rdn.getType()' *
*- * Here we are testing if this method retrieves one of this Rdn's value. In - * this case should raise an exception because the rdn is empty. + * Here we are testing if this method returns one of the Rdn's types. In + * this case it should throw an exception because the Rdn is empty. *
** The expected result is an exception. @@ -1151,12 +1125,12 @@ * Test method for 'javax.naming.ldap.Rdn.getType()' *
*- * Here we are testing if the method retrieves one of this Rdn's type. In - * this case the Rdn is created not empty so the result must be not null and - * not empty. + * Here we are testing if this method returns one of the Rdn's types. In this + * case the Rdn is non-empty so the result must not be null and must be + * non-empty. *
*- * The expected result is a not null and not empty String. + * The expected result is a non-null and non-empty String. *
*/ public void testGetType002() throws Exception { @@ -1169,12 +1143,12 @@ * Test method for 'javax.naming.ldap.Rdn.getType()' * *- * Here we are testing if the method retrieves one of this Rdn's type. In - * this case the Rdn is created not empty so the result must be not null and - * not empty, also here we include a multivalue name. + * Here we are testing if this method returns one of the Rdn's types. In + * this case the Rdn is non-empty so the result must be non-null and + * non-empty, also here we test with a multivalue name. *
*- * The expected result is a not null and not empty String. + * The expected result is a non-null and non-empty String. *
*/ public void testGetType003() throws Exception { @@ -1187,12 +1161,12 @@ * Test method for 'javax.naming.ldap.Rdn.getType()' * *- * Here we are testing if the method retrieves one of this Rdn's type. In - * this case the Rdn is created not empty so the result must be not null and - * not empty, also here we include a multivalue name. + * Here we are testing if the method returns one of the Rdn's types. In + * this case the Rdn is created non-empty so the result must be non-null and + * non-empty, also here we test with a multivalue name. *
*- * The expected result is a not null and not empty String. + * The expected result is a non-null and non-empty String. *
*/ public void testGetType004() throws Exception { @@ -1205,12 +1179,12 @@ * Test method for 'javax.naming.ldap.Rdn.getType()' * *- * Here we are testing if the method retrieves one of this Rdn's type. In - * this case the Rdn is created not empty so the result must be not null and - * not empty, also here we include a multivalue name. + * Here we are testing if the method returns one of the Rdn's types. In + * this case the Rdn is created non-empty so the result must be non-null and + * non-empty, also here we test with a multivalue name. *
*- * The expected result is a not null and not empty String. + * The expected result is a non-null and not empty String. *
*/ public void testGetType005() throws Exception { @@ -1223,11 +1197,11 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' * *- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing two empty Rdn. + * Here we are testing if this method correctly compares an Rdn with + * another object. In this case we are comparing two empty Rdns. *
*- * The expected result is a zero. + * The expected result is zero. *
*/ public void testCompareTo001() throws Exception { @@ -1241,9 +1215,9 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' * *- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing two Rdn one of them is - * empty in this case the second one. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing two Rdns, the second of which is + * empty. *
** The expected result is a positive number. @@ -1260,9 +1234,9 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing two Rdn one of them is - * empty in this case the first one. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing two Rdns, the first of which is + * empty. *
** The expected result is a negative number. @@ -1279,9 +1253,9 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing two Rdn one of them is - * null in this case the second one. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing two Rdns, the second of which is + * null. *
** The expected result is a ClassCastException. @@ -1299,9 +1273,9 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing two Rdn one of them has - * two values, the other one has two values but one is empty. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing two Rdns, one of which has two + * values, and the other of which also has two values, one that is empty. *
** The expected result is a positive number. @@ -1318,9 +1292,9 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing two Rdn one of them has - * two values, the other one has two values but one is empty. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing two Rdns, one of which has + * two values, the other of which also has two values, one that is empty. *
** The expected result is a negative number. @@ -1337,9 +1311,9 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing with an object that is - * not an instance of Rdn. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing with an object that is not an + * instance of Rdn. *
** The expected result is a ClassCastException. @@ -1357,9 +1331,8 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. In this case we are comparing with an Rdn that is Upper - * case. + * Here we are testing if this method correctly compares an Rdn with another + * object. In this case we are comparing with an Rdn that is upper case. *
** The expected result is a 0. @@ -1376,11 +1349,11 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' *
*- * Here we are testing if this method compares this Rdn with the specified - * Object for order. + * Here we are testing if this method correctly compares an Rdn with another + * object. *
*- * The expected result is a 0. + * The expected result is 0. *
*/ public void testCompareTo009() throws Exception { @@ -1394,11 +1367,11 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' * *- * Here we are testing if this method compares this Rdn with the specified - * Object for order. + * Here we are testing if this method correctly compares an Rdn with another + * object. *
*- * The expected result is a 0. + * The expected result is 0. *
*/ public void testCompareTo010() throws Exception { @@ -1412,11 +1385,11 @@ * Test method for 'javax.naming.ldap.Rdn.compareTo(Object)' * *- * Here we are testing if this method compares this Rdn with the specified - * Object for order. + * Here we are testing if this method correctly compares an Rdn with another + * object. *
*- * The expected result is a 0. + * The expected result is 0. *
*/ public void testCompareTo011() throws Exception { @@ -1471,12 +1444,12 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' * *- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the next - * form: "t=\\4C\\4c", notice that here the values are quoted. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with the string + * "t=\\4C\\4c", notice that here the values are quoted. *
*- * The expected result is the map of the Rdn." + * The expected result is the map of the Rdn. *
*/ public void testToAttributes001() throws Exception { @@ -1493,9 +1466,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' * *- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the next - * form: "", notice that here the name is empty. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with the string + * "", notice that here the name is empty. *
** The expected result is the map of the Rdn not null but empty. @@ -1513,9 +1486,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the next - * form: "t=hola", notice that here the values are not quoted. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with the string + * "t=hola", notice that here the values are not quoted. *
** The expected result is the map of the Rdn." @@ -1535,9 +1508,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the next - * form: "t=", notice that here the values are not quoted. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with the string + * "t=", notice that here the values are not quoted. *
** The expected result is the map of the Rdn." @@ -1557,9 +1530,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the next - * form: "t=test+a=test2+b=test3", notice that here the values are not + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with the string + * "t=test+a=test2+b=test3", notice that here the values are not * quoted. *
*@@ -1580,9 +1553,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the - * multivalue form. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with multiple + * values. *
** The expected result is the map of the Rdn. @@ -1602,9 +1575,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the - * multivalue form. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with multiple + * values. *
** The expected result is the map of the Rdn. @@ -1624,9 +1597,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the - * multivalue form. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with multiple + * values. *
** The expected result is the map of the Rdn. @@ -1646,9 +1619,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the - * multivalue form. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with multiple + * values. *
** The expected result is the map of the Rdn. @@ -1668,9 +1641,9 @@ * Test method for 'javax.naming.ldap.Rdn.toAttributes()' *
*- * Here we are testing if this method retrieves the Attributes view of the - * type/value mappings contained in given Rdn wich is sended in the - * multivalue form. + * Here we are testing if this method correctly returns the Rdn's contents + * as an Attributes map. For this test the Rdn is created with multiple + * values. *
** The expected result is the map of the Rdn. @@ -1690,11 +1663,11 @@ * Test method for 'javax.naming.ldap.Rdn.size()' *
*- * Here we are testing if the return of this method is the correct size of - * the given Rdn wich has one names. + * Here we are testing if this method returns the correct size of + * the given Rdn, which has one entry. *
*- * The expected result is an integer with the value of one. + * The expected result is 1. *
*/ public void testSize001() throws Exception { @@ -1707,11 +1680,11 @@ * Test method for 'javax.naming.ldap.Rdn.size()' * *- * Here we are testing if the return of this method is the correct size of + * Here we are testing if this method returns the correct size of * the given empty Rdn. *
*- * The expected result is an integer with the value of zero. + * The expected result is 0. *
*/ public void testSize002() throws Exception { @@ -1724,11 +1697,11 @@ * Test method for 'javax.naming.ldap.Rdn.size()' * *- * Here we are testing if the return of this method is the correct size of - * the given Rdn wich has three names. + * Here we are testing if this method returns the correct size of + * the given Rdn, which has three entries. *
*- * The expected result is an integer with the value of three. + * The expected result is 3. *
*/ public void testSize003() throws Exception { @@ -1741,11 +1714,11 @@ * Test method for 'javax.naming.ldap.Rdn.size()' * *- * Here we are testing if the return of this method is the correct size of - * the given Rdn wich has three names. + * Here we are testing if this method returns the correct size of + * the given Rdn, which has three entries. *
*- * The expected result is an integer with the value of three. + * The expected result is 3. *
*/ public void testSize004() throws Exception { @@ -1758,13 +1731,13 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value could be - * like this "this, that" here the special character is ",". + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is "this, that" here + * the special character is ",". *
*- * The expected result is like this "this\, that". + * The expected result is "this\, that". *
*/ public void testEscapeValue001() throws Exception { @@ -1776,13 +1749,13 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value could be - * like this "this "that"", here the special character is """. + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is "this "that"", + * here the special character is """. *
*- * The expected result is like this "this \"that\"". + * The expected result is "this \"that\"". *
*/ public void testEscapeValue002() { @@ -1794,13 +1767,13 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value could be - * like this "this+that", here the special character is "+". + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is "this+that", here + * the special character is "+". *
*- * The expected result is like this "this+that". + * The expected result is "this+that". *
*/ public void testEscapeValue003() { @@ -1812,13 +1785,13 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value could be - * like this "this;that", here the special character is ";". + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is "this;that", here + * the special character is ";". *
*- * The expected result is like this "this\;that". + * The expected result is "this\;that". *
*/ public void testEscapeValue004() { @@ -1830,13 +1803,13 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value could be - * like this "this<that", here the special character is "<". + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is "this<that", + * here the special character is "<". *
*- * The expected result is like this "this<that". + * The expected result is "this<that". *
*/ public void testEscapeValue005() { @@ -1848,13 +1821,13 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value could be - * like this "this>that", here the special character is ">". + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is "this>that", + * here the special character is ">". *
*- * The expected result is like this "this>that". + * The expected result is "this>that". *
*/ public void testEscapeValue006() { @@ -1866,13 +1839,12 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value in this case - * is null. + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is null. *
*- * The expected result is a null pointer exception. + * The expected result is a NullPointerException. *
*/ public void testEscapeValue007() { @@ -1887,13 +1859,12 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value in this case - * is not a string but a diferent object. + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is not a String. *
*- * The expected result is a class cast exception. + * The expected result is a ClassCastException. *
*/ public void testEscapeValue008() { @@ -1909,10 +1880,9 @@ * Test method for 'javax.naming.ldap.Rdn.escapeValue(Object)' * *- * Here we are testing if this method given the value of an attribute, - * returns a string escaped. In this case the method must be static so there - * is no need to create a previously instance of Rdn, the value in this case - * is a byte array. + * Here we are testing if this method returns a correctly escaped string for + * the given attribute value. In this case the method is static so there is + * no need to create an instance of Rdn. The test value is a byte array. *
** The expected result is the escape value for that array. @@ -1928,8 +1898,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "," in the form "this\,that". *
*@@ -1945,8 +1915,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "+" in the form "this\+that". *
*@@ -1962,8 +1932,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * ";" in the form "this\;that". *
*@@ -1979,8 +1949,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "<" in the form "this\<that". *
*@@ -1996,8 +1966,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * ">" in the form "this\>that". *
*@@ -2013,8 +1983,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "\" in the form "this\that". *
*@@ -2033,8 +2003,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "\" in the form "this\4C". *
*@@ -2050,11 +2020,11 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing if send a null. + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing with null. *
*- * The expected result is a null pointer exception. + * The expected result is a NullPointerException. *
*/ public void testUnescapeValue008() { @@ -2071,8 +2041,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' * *- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "#" in the form "#04". *
*@@ -2089,8 +2059,8 @@ * Test method for 'javax.naming.ldap.Rdn.unescapeValue(String)' *
*- * Here we are testing if a given attribute value string formated, returns - * the unformated value. In this case we are testing the special character + * Here we are testing if his method returns a correctly unformatted string for + * the given attribute value. In this case we are testing the special character * "#" in the form "#GOFJMOII". *
*Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestInitialLdapContext.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestInitialLdapContext.java (revision 541639) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestInitialLdapContext.java (working copy) @@ -44,8 +44,7 @@ *
* Test method for 'javax.naming.ldap.InitialLdapContext()' *
- * Here we are testing if this method constructs an initial context using no - * environment properties or connection request controls. + * Here we are testing the no argument constructor. *
** The expected result is an exception when we try to get the environment @@ -72,9 +71,7 @@ * ?>, Control[])' *
*- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use two null arguments. + * Here we are testing the constructor with two null arguments. *
** The expected result is an instance of this class.
, Control[])' * *- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use two not null arguments. + * Here we are testing the constructor with two non-null arguments. *
** The expected result is an instance of this class. @@ -119,10 +114,8 @@ * ?>, Control[])' *
*- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use two not null arguments, and INITIAL_CONTEXT_FACTORY constant not - * reference to a correct class. + * Here we are testing the constructor with two non-null arguments, and the + * INITIAL_CONTEXT_FACTORY constant set to reference a non-existant class. *
** The expected result is an exception like "NoInitialContextException". @@ -147,13 +140,11 @@ * ?>, Control[])' *
*- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use and INITIAL_CONTEXT_FACTORY constant reference to a correct class, - * but with no controls. + * Here we are testing the constructor with the INITIAL_CONTEXT_FACTORY + * constant set to reference a correct class, but with no controls. *
*- * The expected result is an exception of the class". + * The expected result is an exception. *
*/ public void testInitialLdapContextHashtableOfQQControlArray004() @@ -174,12 +165,11 @@ * ?>, Control[])' * *- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use two not null arguments, and here the hashtable is empty. + * Here we are testing the constructor with two non-null arguments. In this + * case the hashtable is empty. *
*- * The expected result is an instance of the context. + * The expected result is a new InitialLdapContext instance. *
*/ public void testInitialLdapContextHashtableOfQQControlArray005() @@ -200,13 +190,12 @@ * ?>, Control[])' * *- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use two not null arguments, and here the hashtable is not empty but with - * data unsuitable and the controls is not empty. + * Here we are testing the constructor with two non-null arguments, and here + * the hashtable is not empty but contains unsuitable data, and the Control + * array is not empty. *
*- * The expected result is an instance of the context. + * The expected result is a new InitialLdapContext instance. *
*/ public void testInitialLdapContextHashtableOfQQControlArray006() @@ -231,13 +220,11 @@ * ?>, Control[])' * *- * Here we are testing the method that constructs an initial context using - * environment properties and connection request controls, in this case we - * use two not null arguments, and here the hashtable is not empty but with - * data unsuitable. + * Here we are testing the constructor with two non-null arguments, and here + * the hashtable is not empty but contains unsuitable data. *
*- * The expected result is an instance of the context. + * The expected result is a new InitialLdapContext instance. *
*/ public void testInitialLdapContextHashtableOfQQControlArray007() @@ -259,11 +246,11 @@ * 'javax.naming.ldap.InitialLdapContext.extendedOperation(ExtendedRequest)' * *- * Here we are testing if this method performs an extended operation. Here - * we send a null extended operation. + * Here we are testing if this method correctly executes the given + * operation. Here we send a null ExtendedRequest. *
*- * The expected result is a "NullpointerException". + * The expected result is a "NullPointerException". *
*/ public void testExtendedOperation001() throws Exception { @@ -283,11 +270,11 @@ * 'javax.naming.ldap.InitialLdapContext.extendedOperation(ExtendedRequest)' * *- * Here we are testing if this method performs an extended operation. Here - * we send a not null extended operation. + * Here we are testing if this method correctly executes the given + * operation. Here we send a non-null ExtendedRequest. *
*- * The expected result is an Extended Response. + * The expected result is an ExtendedResponse. *
*/ public void testExtendedOperation002() throws Exception { @@ -305,12 +292,12 @@ * 'javax.naming.ldap.InitialLdapContext.newInstance(Control[])' * *- * Here we are testing if this method creates a new instance of this context - * initialized using request controls. In this case we are using as a - * parameters null controls. + * Here we are testing if this method correctly creates a new + * InitialLdapContext instance. In this case we are using null as a + * parameter. *
*- * The expected result is a not null initial ladp context. + * The expected result is a non-null InitialLdapContext. *
*/ public void testNewInstance001() throws Exception { @@ -331,12 +318,12 @@ * 'javax.naming.ldap.InitialLdapContext.newInstance(Control[])' * *- * Here we are testing if this method creates a new instance of this context - * initialized using request controls. In this case we are using as a - * parameters null controls. + * Here we are testing if this method correctly creates a new + * InitialLdapContext instance. In this case we are using a non-null + * parameter. *
*- * The expected result is a not null initial ladp context. + * The expected result is a non-null InitialLdapContext. *
*/ public void testNewInstance002() throws Exception { @@ -360,9 +347,8 @@ * 'javax.naming.ldap.InitialLdapContext.reconnect(Control[])' * *- * Here we are testing if this method reconnects to the LDAP server using - * the supplied controls and this context's environment. In this case we are - * sending a set of null controls. + * Here we are testing if this method correctly reconnects to the LDAP + * server. In this case we are using a null argument. *
** The expected result is a reconection with no controls. @@ -383,9 +369,8 @@ * 'javax.naming.ldap.InitialLdapContext.reconnect(Control[])' *
*- * Here we are testing if this method reconnects to the LDAP server using - * the supplied controls and this context's environment. In this case we are - * sending a set not null of controls. + * Here we are testing if this method correctly reconnects to the LDAP + * server In this case we are using a non-null argument. *
** The expected result is a reconection with the controls sended. @@ -409,9 +394,9 @@ * 'javax.naming.ldap.InitialLdapContext.reconnect(Control[])' *
*- * Here we are testing if this method reconnects to the LDAP server using - * the supplied controls and this context's environment. In this case we are - * sending a new set of controls to reconection. + * Here we are testing if this method correctly reconnects to the LDAP + * server. In this case we are using a different set of controls for the + * reconnection. *
** The expected result is a reconection with the new set of controls. @@ -439,9 +424,8 @@ * 'javax.naming.ldap.InitialLdapContext.getConnectControls()' *
*- * Here we are testing if this method retrieves the connection request - * controls in effect for this context. In this case we use a null array - * control. + * Here we are testing if this method correctly returns the connection + * controls. In this case we are using a null control array. *
** The expected result is the controls that we use to create the context. @@ -473,9 +457,8 @@ * 'javax.naming.ldap.InitialLdapContext.getConnectControls()' *
*- * Here we are testing if this method retrieves the connection request - * controls in effect for this context. In this case we use a null array - * control. + * Here we are testing if this method correctly returns the connection + * controls. In this case we are using a null control array. *
** The expected result is the controls that we use to create the context. @@ -496,11 +479,11 @@ * 'javax.naming.ldap.InitialLdapContext.setRequestControls(Control[])' *
*- * Here we are testing if this method sets the request controls for methods - * subsequently invoked on this context. + * Here we are testing if this method correctly sets the controls for + * requests. *
*- * The expected result is that the context keep the new request controls. + * The expected result is that the context keeps the new request controls. *
*/ public void testSetRequestControls001() throws Exception { @@ -526,11 +509,11 @@ * 'javax.naming.ldap.InitialLdapContext.setRequestControls(Control[])' * *- * Here we are testing if this method sets the request controls for methods - * subsequently invoked on this context. + * Here we are testing if this method correctly sets the controls for + * requests. *
*- * The expected result is that the context keep the new request controls. + * The expected result is that the context keeps the new request controls. *
*/ public void testSetRequestControls002() throws Exception { @@ -559,8 +542,8 @@ * 'javax.naming.ldap.InitialLdapContext.getRequestControls()' * *- * Here we are testing if this method retrieves the request controls in - * effect for this context. + * Here we are testing if this method correctly returns the request + * controls. *
** The expected result is a null set of controls. @@ -592,8 +575,8 @@ * 'javax.naming.ldap.InitialLdapContext.getResponseControls()' *
*- * Here we are testing if this method retrieves the response controls - * produced as a result of the last method invoked on this context. + * Here we are testing if this method correctly returns the response + * controls. *
** The expected result is a null set of controls. Index: src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java =================================================================== --- src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java (revision 561320) +++ src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/TestSortResponseControl.java (working copy) @@ -43,7 +43,7 @@ /** *
This Test class is testing the SortControl class.
- *In the next tables we are gonna see the methods that we test in this class:
+ *In the next tables we see the methods that we test in this class:
*| Constructors: |
|---|