directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r411562 - in /directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name: LdapDNTest.java LdapDnParserTest.java
Date Sun, 04 Jun 2006 14:24:38 GMT
Author: elecharny
Date: Sun Jun  4 07:24:38 2006
New Revision: 411562

URL: http://svn.apache.org/viewvc?rev=411562&view=rev
Log:
Fixed the tests

Modified:
    directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
    directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java

Modified: directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?rev=411562&r1=411561&r2=411562&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Sun Jun  4 07:24:38 2006
@@ -70,7 +70,7 @@
      */
     public void testLdapDNNull() throws DecoderException
     {
-        Assert.assertEquals( "", new LdapDN().getName() );
+        Assert.assertEquals( "", new LdapDN().getUpName() );
     }
 
 
@@ -79,7 +79,7 @@
      */
     public void testLdapDNEmpty() throws InvalidNameException
     {
-        Assert.assertEquals( "", new LdapDN( "" ).getName() );
+        Assert.assertEquals( "", new LdapDN( "" ).getUpName() );
     }
 
 
@@ -89,7 +89,7 @@
     public void testLdapDNSimple() throws InvalidNameException
     {
         LdapDN dn = new LdapDN( "a = b" );
-        Assert.assertEquals( "a = b", dn.getName() );
+        Assert.assertEquals( "a = b", dn.getUpName() );
         Assert.assertEquals( "a=b", dn.toString() );
     }
 
@@ -101,7 +101,7 @@
     {
         LdapDN dn = new LdapDN( "a = b, c = d" );
         Assert.assertEquals( "a=b,c=d", dn.toString() );
-        Assert.assertEquals( "a = b, c = d", dn.getName() );
+        Assert.assertEquals( "a = b, c = d", dn.getUpName() );
     }
 
 
@@ -112,7 +112,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, a =b, a= b, a = b, a  =  b" );
         Assert.assertEquals( "a=b,a=b,a=b,a=b,a=b", dn.toString() );
-        Assert.assertEquals( "a=b, a =b, a= b, a = b, a  =  b", dn.getName() );
+        Assert.assertEquals( "a=b, a =b, a= b, a = b, a  =  b", dn.getUpName() );
     }
 
 
@@ -124,7 +124,7 @@
     {
         LdapDN dn = new LdapDN( "a=b;c=d,e=f" );
         Assert.assertEquals( "a=b,c=d,e=f", dn.toString() );
-        Assert.assertEquals( "a=b;c=d,e=f", dn.getName() );
+        Assert.assertEquals( "a=b;c=d,e=f", dn.getUpName() );
     }
 
 
@@ -135,7 +135,7 @@
     {
         LdapDN dn = new LdapDN( "a = b + c = d" );
         Assert.assertEquals( "a=b+c=d", dn.toString() );
-        Assert.assertEquals( "a = b + c = d", dn.getName() );
+        Assert.assertEquals( "a = b + c = d", dn.getUpName() );
     }
 
 
@@ -147,7 +147,7 @@
     {
         LdapDN dn = new LdapDN( "a=b+c=d, e=f + g=h + i=j" );
         Assert.assertEquals( "a=b+c=d,e=f+g=h+i=j", dn.toString() );
-        Assert.assertEquals( "a=b+c=d, e=f + g=h + i=j", dn.getName() );
+        Assert.assertEquals( "a=b+c=d, e=f + g=h + i=j", dn.getUpName() );
     }
 
 
@@ -158,7 +158,7 @@
     {
         LdapDN dn = new LdapDN( "OID.12.34.56 = azerty" );
         Assert.assertEquals( "oid.12.34.56=azerty", dn.toString() );
-        Assert.assertEquals( "OID.12.34.56 = azerty", dn.getName() );
+        Assert.assertEquals( "OID.12.34.56 = azerty", dn.getUpName() );
     }
 
 
@@ -169,7 +169,7 @@
     {
         LdapDN dn = new LdapDN( "oid.12.34.56 = azerty" );
         Assert.assertEquals( "oid.12.34.56=azerty", dn.toString() );
-        Assert.assertEquals( "oid.12.34.56 = azerty", dn.getName() );
+        Assert.assertEquals( "oid.12.34.56 = azerty", dn.getUpName() );
     }
 
 
@@ -181,7 +181,7 @@
     {
         LdapDN dn = new LdapDN( "12.34.56 = azerty" );
         Assert.assertEquals( "12.34.56=azerty", dn.toString() );
-        Assert.assertEquals( "12.34.56 = azerty", dn.getName() );
+        Assert.assertEquals( "12.34.56 = azerty", dn.getUpName() );
     }
 
 
@@ -193,7 +193,7 @@
     {
         LdapDN dn = new LdapDN( "12.34.56 = azerty; 7.8 = test" );
         Assert.assertEquals( "12.34.56=azerty,7.8=test", dn.toString() );
-        Assert.assertEquals( "12.34.56 = azerty; 7.8 = test", dn.getName() );
+        Assert.assertEquals( "12.34.56 = azerty; 7.8 = test", dn.getUpName() );
     }
 
 
@@ -204,7 +204,7 @@
     {
         LdapDN dn = new LdapDN( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00" );
         Assert.assertEquals( "a=\\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00", dn.toString()
);
-        Assert.assertEquals( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00", dn.getName()
);
+        Assert.assertEquals( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00", dn.getUpName()
);
     }
 
 
@@ -215,7 +215,7 @@
     {
         LdapDN dn = new LdapDN( "a = #0010A0AAFF" );
         Assert.assertEquals( "a=#0010A0AAFF", dn.toString() );
-        Assert.assertEquals( "a = #0010A0AAFF", dn.getName() );
+        Assert.assertEquals( "a = #0010A0AAFF", dn.getUpName() );
     }
 
 
@@ -226,7 +226,7 @@
     {
         LdapDN dn = new LdapDN( "a = quoted \\\"value" );
         Assert.assertEquals( "a=quoted \\\"value", dn.toString() );
-        Assert.assertEquals( "a = quoted \\\"value", dn.getName() );
+        Assert.assertEquals( "a = quoted \\\"value", dn.getUpName() );
     }
 
 
@@ -240,7 +240,7 @@
         LdapDN dn = new LdapDN( "a=b, c=d, e=f" );
         Assert.assertEquals( "e=f", dn.remove( 0 ).toString() );
         Assert.assertEquals( "a=b,c=d", dn.toString() );
-        Assert.assertEquals( "a=b, c=d", dn.getName() );
+        Assert.assertEquals( "a=b, c=d", dn.getUpName() );
     }
 
 
@@ -251,7 +251,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d, e=f" );
         Assert.assertEquals( "c=d", dn.remove( 1 ).toString() );
-        Assert.assertEquals( "a=b, e=f", dn.getName() );
+        Assert.assertEquals( "a=b, e=f", dn.getUpName() );
     }
 
 
@@ -262,7 +262,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d, e=f" );
         Assert.assertEquals( "a=b", dn.remove( 2 ).toString() );
-        Assert.assertEquals( " c=d, e=f", dn.getName() );
+        Assert.assertEquals( " c=d, e=f", dn.getUpName() );
     }
 
 
@@ -273,7 +273,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d; e=f" );
         Assert.assertEquals( "c=d", dn.remove( 1 ).toString() );
-        Assert.assertEquals( "a=b, e=f", dn.getName() );
+        Assert.assertEquals( "a=b, e=f", dn.getUpName() );
     }
 
 
@@ -370,7 +370,7 @@
 
         dn.add( "e = f" );
         Assert.assertEquals( "e=f", dn.toString() );
-        Assert.assertEquals( "e = f", dn.getName() );
+        Assert.assertEquals( "e = f", dn.getUpName() );
         Assert.assertEquals( 1, dn.size() );
     }
 
@@ -384,7 +384,7 @@
 
         dn.add( "e = f" );
         Assert.assertEquals( "e=f,a=b,c=d", dn.toString() );
-        Assert.assertEquals( "e = f,a=b, c=d", dn.getName() );
+        Assert.assertEquals( "e = f,a=b, c=d", dn.getUpName() );
         Assert.assertEquals( 3, dn.size() );
     }
 
@@ -414,7 +414,7 @@
         LdapDN dn = new LdapDN( "a=b, c=d" );
 
         dn.add( dn.size(), "e = f" );
-        Assert.assertEquals( "e = f,a=b, c=d", dn.getName() );
+        Assert.assertEquals( "e = f,a=b, c=d", dn.getUpName() );
         Assert.assertEquals( 3, dn.size() );
     }
 
@@ -427,7 +427,7 @@
         LdapDN dn = new LdapDN( "a=b, c=d" );
 
         dn.add( 0, "e = f" );
-        Assert.assertEquals( "a=b, c=d,e = f", dn.getName() );
+        Assert.assertEquals( "a=b, c=d,e = f", dn.getUpName() );
         Assert.assertEquals( 3, dn.size() );
     }
 
@@ -440,7 +440,7 @@
         LdapDN dn = new LdapDN( "a=b, c=d" );
 
         dn.add( 1, "e = f" );
-        Assert.assertEquals( "a=b,e = f, c=d", dn.getName() );
+        Assert.assertEquals( "a=b,e = f, c=d", dn.getUpName() );
         Assert.assertEquals( 3, dn.size() );
     }
 
@@ -456,7 +456,7 @@
         LdapDN dn = new LdapDN( "a = b" );
         LdapDN dn2 = new LdapDN( "c = d" );
         dn.addAll( dn2 );
-        Assert.assertEquals( "c = d,a = b", dn.getName() );
+        Assert.assertEquals( "c = d,a = b", dn.getUpName() );
     }
 
 
@@ -471,7 +471,7 @@
         LdapDN dn2 = new LdapDN();
         dn.addAll( dn2 );
         Assert.assertEquals( "a=b", dn.toString() );
-        Assert.assertEquals( "a = b", dn.getName() );
+        Assert.assertEquals( "a = b", dn.getUpName() );
     }
 
 
@@ -485,7 +485,7 @@
         LdapDN dn = new LdapDN();
         LdapDN dn2 = new LdapDN( "a = b" );
         dn.addAll( dn2 );
-        Assert.assertEquals( "a = b", dn.getName() );
+        Assert.assertEquals( "a = b", dn.getUpName() );
     }
 
 
@@ -499,7 +499,7 @@
         LdapDN dn = new LdapDN( "a = b" );
         LdapDN dn2 = new LdapDN( "c = d" );
         dn.addAll( 0, dn2 );
-        Assert.assertEquals( "a = b,c = d", dn.getName() );
+        Assert.assertEquals( "a = b,c = d", dn.getUpName() );
     }
 
 
@@ -513,7 +513,7 @@
         LdapDN dn = new LdapDN( "a = b" );
         LdapDN dn2 = new LdapDN( "c = d" );
         dn.addAll( 1, dn2 );
-        Assert.assertEquals( "c = d,a = b", dn.getName() );
+        Assert.assertEquals( "c = d,a = b", dn.getUpName() );
     }
 
 
@@ -527,7 +527,7 @@
         LdapDN dn = new LdapDN( "a = b, c = d" );
         LdapDN dn2 = new LdapDN( "e = f" );
         dn.addAll( 1, dn2 );
-        Assert.assertEquals( "a = b,e = f, c = d", dn.getName() );
+        Assert.assertEquals( "a = b,e = f, c = d", dn.getUpName() );
     }
 
 
@@ -542,7 +542,7 @@
         LdapDN dn2 = new LdapDN();
         dn.addAll( 0, dn2 );
         Assert.assertEquals( "a=b", dn.toString() );
-        Assert.assertEquals( "a = b", dn.getName() );
+        Assert.assertEquals( "a = b", dn.getUpName() );
     }
 
 
@@ -556,7 +556,7 @@
         LdapDN dn = new LdapDN();
         LdapDN dn2 = new LdapDN( "a = b" );
         dn.addAll( 0, dn2 );
-        Assert.assertEquals( "a = b", dn.getName() );
+        Assert.assertEquals( "a = b", dn.getUpName() );
     }
 
 
@@ -568,7 +568,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getPrefix( 0 ) );
-        Assert.assertEquals( "", newDn.getName() );
+        Assert.assertEquals( "", newDn.getUpName() );
     }
 
 
@@ -579,7 +579,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getPrefix( 1 ) );
-        Assert.assertEquals( "e = f", newDn.getName() );
+        Assert.assertEquals( "e = f", newDn.getUpName() );
     }
 
 
@@ -590,7 +590,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getPrefix( 2 ) );
-        Assert.assertEquals( " c=d,e = f", newDn.getName() );
+        Assert.assertEquals( " c=d,e = f", newDn.getUpName() );
     }
 
 
@@ -601,7 +601,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getPrefix( 3 ) );
-        Assert.assertEquals( "a=b, c=d,e = f", newDn.getName() );
+        Assert.assertEquals( "a=b, c=d,e = f", newDn.getUpName() );
     }
 
 
@@ -632,7 +632,7 @@
     {
         LdapDN dn = new LdapDN();
         LdapDN newDn = ( ( LdapDN ) dn.getPrefix( 0 ) );
-        Assert.assertEquals( "", newDn.getName() );
+        Assert.assertEquals( "", newDn.getUpName() );
     }
 
 
@@ -644,7 +644,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getSuffix( 0 ) );
-        Assert.assertEquals( "a=b, c=d,e = f", newDn.getName() );
+        Assert.assertEquals( "a=b, c=d,e = f", newDn.getUpName() );
     }
 
 
@@ -655,7 +655,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getSuffix( 1 ) );
-        Assert.assertEquals( "a=b, c=d", newDn.getName() );
+        Assert.assertEquals( "a=b, c=d", newDn.getUpName() );
     }
 
 
@@ -666,7 +666,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getSuffix( 2 ) );
-        Assert.assertEquals( "a=b", newDn.getName() );
+        Assert.assertEquals( "a=b", newDn.getUpName() );
     }
 
 
@@ -677,7 +677,7 @@
     {
         LdapDN dn = new LdapDN( "a=b, c=d,e = f" );
         LdapDN newDn = ( ( LdapDN ) dn.getSuffix( 3 ) );
-        Assert.assertEquals( "", newDn.getName() );
+        Assert.assertEquals( "", newDn.getUpName() );
     }
 
 
@@ -708,7 +708,7 @@
     {
         LdapDN dn = new LdapDN();
         LdapDN newDn = ( ( LdapDN ) dn.getSuffix( 0 ) );
-        Assert.assertEquals( "", newDn.getName() );
+        Assert.assertEquals( "", newDn.getUpName() );
     }
 
 
@@ -974,7 +974,7 @@
         LdapDN dn = new LdapDN();
         LdapDN clone = ( LdapDN ) dn.clone();
 
-        Assert.assertEquals( "", clone.getName() );
+        Assert.assertEquals( "", clone.getUpName() );
     }
 
 
@@ -986,9 +986,9 @@
         LdapDN dn = new LdapDN( "a=b" );
         LdapDN clone = ( LdapDN ) dn.clone();
 
-        Assert.assertEquals( "a=b", clone.getName() );
+        Assert.assertEquals( "a=b", clone.getUpName() );
         dn.remove( 0 );
-        Assert.assertEquals( "a=b", clone.getName() );
+        Assert.assertEquals( "a=b", clone.getUpName() );
     }
 
 
@@ -1000,9 +1000,9 @@
         LdapDN dn = new LdapDN( "e=f+g=h,a=b,c=d" );
         LdapDN clone = ( LdapDN ) dn.clone();
 
-        Assert.assertEquals( "e=f+g=h,a=b,c=d", clone.getName() );
+        Assert.assertEquals( "e=f+g=h,a=b,c=d", clone.getUpName() );
         dn.remove( 2 );
-        Assert.assertEquals( "e=f+g=h,a=b,c=d", clone.getName() );
+        Assert.assertEquals( "e=f+g=h,a=b,c=d", clone.getUpName() );
     }
 
 
@@ -1182,7 +1182,7 @@
     {
         Name name = LdapDnParser.getNameParser().parse( "CN = Emmanuel  Lécharny" );
 
-        Assert.assertEquals( "CN = Emmanuel  Lécharny", ( ( LdapDN ) name ).getName()
);
+        Assert.assertEquals( "CN = Emmanuel  Lécharny", ( ( LdapDN ) name ).getUpName()
);
         Assert.assertEquals( "cn=Emmanuel  Lécharny", name.toString() );
     }
 

Modified: directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java?rev=411562&r1=411561&r2=411562&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
(original)
+++ directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
Sun Jun  4 07:24:38 2006
@@ -56,7 +56,7 @@
     {
         NameParser dnParser = LdapDnParser.getNameParser();
 
-        Assert.assertEquals( "", ( ( LdapDN ) dnParser.parse( "" ) ).getName() );
+        Assert.assertEquals( "", ( ( LdapDN ) dnParser.parse( "" ) ).getUpName() );
     }
 
 
@@ -67,7 +67,7 @@
     {
         NameParser dnParser = LdapDnParser.getNameParser();
 
-        Assert.assertEquals( "a = b", ( ( LdapDN ) dnParser.parse( "a = b" ) ).getName()
);
+        Assert.assertEquals( "a = b", ( ( LdapDN ) dnParser.parse( "a = b" ) ).getUpName()
);
         Assert.assertEquals( "a=b", ( ( LdapDN ) dnParser.parse( "a = b" ) ).toString() );
     }
 
@@ -80,7 +80,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a = b, c = d" );
         Assert.assertEquals( "a=b,c=d", dn.toString() );
-        Assert.assertEquals( "a = b, c = d", dn.getName() );
+        Assert.assertEquals( "a = b, c = d", dn.getUpName() );
     }
 
 
@@ -92,7 +92,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a=b, a =b, a= b, a = b, a  =  b" );
         Assert.assertEquals( "a=b,a=b,a=b,a=b,a=b", dn.toString() );
-        Assert.assertEquals( "a=b, a =b, a= b, a = b, a  =  b", dn.getName() );
+        Assert.assertEquals( "a=b, a =b, a= b, a = b, a  =  b", dn.getUpName() );
     }
 
 
@@ -105,7 +105,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a=b;c=d,e=f" );
         Assert.assertEquals( "a=b,c=d,e=f", dn.toString() );
-        Assert.assertEquals( "a=b;c=d,e=f", dn.getName() );
+        Assert.assertEquals( "a=b;c=d,e=f", dn.getUpName() );
     }
 
 
@@ -117,7 +117,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a = b + c = d" );
         Assert.assertEquals( "a=b+c=d", dn.toString() );
-        Assert.assertEquals( "a = b + c = d", dn.getName() );
+        Assert.assertEquals( "a = b + c = d", dn.getUpName() );
     }
 
 
@@ -130,7 +130,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a=b+c=d, e=f + g=h + i=j" );
         Assert.assertEquals( "a=b+c=d,e=f+g=h+i=j", dn.toString() );
-        Assert.assertEquals( "a=b+c=d, e=f + g=h + i=j", dn.getName() );
+        Assert.assertEquals( "a=b+c=d, e=f + g=h + i=j", dn.getUpName() );
     }
 
 
@@ -142,7 +142,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "OID.12.34.56 = azerty" );
         Assert.assertEquals( "oid.12.34.56=azerty", dn.toString() );
-        Assert.assertEquals( "OID.12.34.56 = azerty", dn.getName() );
+        Assert.assertEquals( "OID.12.34.56 = azerty", dn.getUpName() );
     }
 
 
@@ -154,7 +154,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "oid.12.34.56 = azerty" );
         Assert.assertEquals( "oid.12.34.56=azerty", dn.toString() );
-        Assert.assertEquals( "oid.12.34.56 = azerty", dn.getName() );
+        Assert.assertEquals( "oid.12.34.56 = azerty", dn.getUpName() );
     }
 
 
@@ -167,7 +167,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "12.34.56 = azerty" );
         Assert.assertEquals( "12.34.56=azerty", dn.toString() );
-        Assert.assertEquals( "12.34.56 = azerty", dn.getName() );
+        Assert.assertEquals( "12.34.56 = azerty", dn.getUpName() );
     }
 
 
@@ -180,7 +180,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "12.34.56 = azerty; 7.8 = test" );
         Assert.assertEquals( "12.34.56=azerty,7.8=test", dn.toString() );
-        Assert.assertEquals( "12.34.56 = azerty; 7.8 = test", dn.getName() );
+        Assert.assertEquals( "12.34.56 = azerty; 7.8 = test", dn.getUpName() );
     }
 
 
@@ -192,7 +192,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00"
);
         Assert.assertEquals( "a=\\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00", dn.toString()
);
-        Assert.assertEquals( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00", dn.getName()
);
+        Assert.assertEquals( "a = \\,\\=\\+\\<\\>\\#\\;\\\\\\\"\\A0\\00", dn.getUpName()
);
     }
 
 
@@ -204,7 +204,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a = #0010A0AAFF" );
         Assert.assertEquals( "a=#0010A0AAFF", dn.toString() );
-        Assert.assertEquals( "a = #0010A0AAFF", dn.getName() );
+        Assert.assertEquals( "a = #0010A0AAFF", dn.getUpName() );
     }
 
 
@@ -216,7 +216,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN dn = ( LdapDN ) dnParser.parse( "a = quoted \\\"value" );
         Assert.assertEquals( "a=quoted \\\"value", dn.toString() );
-        Assert.assertEquals( "a = quoted \\\"value", dn.getName() );
+        Assert.assertEquals( "a = quoted \\\"value", dn.getUpName() );
     }
 
 
@@ -240,7 +240,7 @@
         NameParser dnParser = LdapDnParser.getNameParser();
         LdapDN name = ( LdapDN ) dnParser.parse( "CN = Emmanuel  Lécharny" );
 
-        Assert.assertEquals( "CN = Emmanuel  Lécharny", name.getName() );
+        Assert.assertEquals( "CN = Emmanuel  Lécharny", name.getUpName() );
         Assert.assertEquals( "cn=Emmanuel  Lécharny", name.toString() );
     }
 
@@ -253,7 +253,7 @@
 
         Assert.assertEquals(
             "cn=Billy Bakers, OID.2.5.4.11=Corporate Tax, ou=Fin-Accounting, ou=Americas,
ou=Search, o=IMC, c=US", name
-                .getName() );
+                .getUpName() );
         Assert.assertEquals(
             "cn=Billy Bakers,oid.2.5.4.11=Corporate Tax,ou=Fin-Accounting,ou=Americas,ou=Search,o=IMC,c=US",
name
                 .toString() );



Mime
View raw message