directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r451836 [11/11] - in /directory/branches/shared/0.9.5/ldap/src: main/java/org/apache/directory/shared/ldap/codec/ main/java/org/apache/directory/shared/ldap/codec/abandon/ main/java/org/apache/directory/shared/ldap/codec/actions/ main/java/...
Date Sun, 01 Oct 2006 23:07:49 GMT
Modified: directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java?view=diff&rev=451836&r1=451835&r2=451836
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
Sun Oct  1 16:07:44 2006
@@ -34,9 +34,7 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
-import java.util.Properties;
 
-import javax.naming.CompoundName;
 import javax.naming.InvalidNameException;
 import javax.naming.Name;
 import javax.naming.NamingException;
@@ -189,7 +187,6 @@
        LdapDN target = new LdapDN();
        target.addAll( target.size(), dn );
        assertEquals( "cn=Kate Bush+sn=Bush,ou=system", target.toString() );
-       System.out.println( target.getUpName() );
        assertEquals( "cn=Kate Bush+sn=Bush,ou=system", target.getUpName() );
    }
 
@@ -2654,28 +2651,5 @@
        LdapDN name = new LdapDN( "0.9.2342.19200300.100.1.1=00123456789+2.5.4.3=pablo picasso,2.5.4.11=search,2.5.4.10=imc,2.5.4.6=us"
);
        Assert.assertEquals( "0.9.2342.19200300.100.1.1=00123456789+2.5.4.3=pablo picasso,2.5.4.11=search,2.5.4.10=imc,2.5.4.6=us",
name.toString() );
        Assert.assertEquals( "0.9.2342.19200300.100.1.1=00123456789+2.5.4.3=pablo picasso,2.5.4.11=search,2.5.4.10=imc,2.5.4.6=us",
name.getUpName() );
-   }
-   
-   
-   public void testNameAddAll() throws NamingException
-   {
-       Properties props = new Properties();
-       props.setProperty( "jndi.syntax.direction", "right_to_left" );
-       props.setProperty( "jndi.syntax.separator", "," );
-       props.setProperty( "jndi.syntax.ignorecase", "true" );
-       props.setProperty( "jndi.syntax.trimblanks", "true" );
-
-       Name dn = new CompoundName( "cn=blah,dc=example,dc=com", props );
-       LdapDN ldapDn = new LdapDN();
-       ldapDn.addAll( 0, dn );
-       
-       assertEquals( "cn=blah,dc=example,dc=com", ldapDn.toString() );
-
-       dn = new CompoundName( "cn=blah,dc=example,dc=com", props );
-       ldapDn = new LdapDN( "cn=xyz" );
-       ldapDn.addAll( 0, dn );
-       
-       System.out.println( ldapDn.toString() );
-       assertEquals( "cn=xyz,cn=blah,dc=example,dc=com", ldapDn.toString() );
    }
 }



Mime
View raw message