directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r376623 [4/38] - in /directory/sandbox/akarasulu/rc1/apacheds: core-plugin/src/main/java/org/apache/directory/server/core/tools/schema/ core-plugin/src/test/java/org/apache/directory/server/core/tools/schema/ core-shared/src/main/java/org/a...
Date Fri, 10 Feb 2006 10:49:57 GMT
Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/exception/ExceptionServiceTest.java Fri Feb 10 02:48:07 2006
@@ -50,7 +50,6 @@
     // Search Operation Tests
     // ------------------------------------------------------------------------
 
-
     /**
      * Test search operation failure when the search base is non-existant.
      */
@@ -62,7 +61,7 @@
             sysRoot.search( "ou=blah", "(objectClass=*)", ctls );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -94,7 +93,6 @@
     // Move Operation Tests
     // ------------------------------------------------------------------------
 
-
     /**
      * Test move operation failure when the object moved is non-existant.
      */
@@ -106,7 +104,7 @@
             sysRoot.rename( "ou=users", "ou=users,ou=groups" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameAlreadyBoundException e )
+        catch ( LdapNameAlreadyBoundException e )
         {
             assertEquals( "ou=users,ou=groups,ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.ENTRYALREADYEXISTS, e.getResultCode() );
@@ -120,7 +118,7 @@
             sysRoot.removeFromEnvironment( "java.naming.ldap.deleteRDN" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameAlreadyBoundException e )
+        catch ( LdapNameAlreadyBoundException e )
         {
             assertEquals( "ou=uzerz,ou=groups,ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.ENTRYALREADYEXISTS, e.getResultCode() );
@@ -138,7 +136,7 @@
             sysRoot.rename( "ou=blah", "ou=blah,ou=groups" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -151,7 +149,7 @@
             sysRoot.removeFromEnvironment( "java.naming.ldap.deleteRDN" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -173,7 +171,7 @@
             sysRoot.lookup( "ou=users" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertTrue( e instanceof LdapNameNotFoundException );
@@ -195,7 +193,7 @@
             sysRoot.rename( "ou=users", "ou=groups" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameAlreadyBoundException e )
+        catch ( LdapNameAlreadyBoundException e )
         {
             assertEquals( "ou=groups,ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.ENTRYALREADYEXISTS, e.getResultCode() );
@@ -213,7 +211,7 @@
             sysRoot.rename( "ou=blah", "ou=asdf" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -235,7 +233,7 @@
             sysRoot.lookup( "ou=users" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertTrue( e instanceof LdapNameNotFoundException );
@@ -263,23 +261,21 @@
             sysRoot.modifyAttributes( "ou=blah", DirContext.ADD_ATTRIBUTE, attrs );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
         }
 
-
-        ModificationItem[] mods = new ModificationItem[] {
-            new ModificationItem( DirContext.ADD_ATTRIBUTE, ou )
-        };
+        ModificationItem[] mods = new ModificationItem[]
+            { new ModificationItem( DirContext.ADD_ATTRIBUTE, ou ) };
 
         try
         {
             sysRoot.modifyAttributes( "ou=blah", mods );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -304,9 +300,8 @@
 
         attr = new BasicAttribute( "ou" );
         attr.add( "another" );
-        ModificationItem[] mods = new ModificationItem[] {
-            new ModificationItem( DirContext.ADD_ATTRIBUTE, attr )
-        };
+        ModificationItem[] mods = new ModificationItem[]
+            { new ModificationItem( DirContext.ADD_ATTRIBUTE, attr ) };
 
         sysRoot.modifyAttributes( "ou=users", mods );
         ou = sysRoot.getAttributes( "ou=users" ).get( "ou" );
@@ -330,7 +325,7 @@
             sysRoot.lookup( "ou=blah" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -346,7 +341,7 @@
     {
         LdapContext ctx = ( LdapContext ) sysRoot.lookup( "ou=users" );
         assertNotNull( ctx );
-        assertEquals( "users", ctx.getAttributes("").get( "ou" ).get() );
+        assertEquals( "users", ctx.getAttributes( "" ).get( "ou" ).get() );
     }
 
 
@@ -354,7 +349,6 @@
     // List Operation Tests
     // ------------------------------------------------------------------------
 
-
     /**
      * Test list operation failure when the base searched is non-existant.
      */
@@ -365,7 +359,7 @@
             sysRoot.list( "ou=blah" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -395,7 +389,6 @@
     // Add Operation Tests
     // ------------------------------------------------------------------------
 
-
     /**
      * Tests for add operation failure when the parent of the entry to add does
      * not exist.
@@ -416,7 +409,7 @@
             sysRoot.createSubcontext( "ou=blah,cn=toanother" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNamingException e )
+        catch ( LdapNamingException e )
         {
             assertEquals( "cn=toanother,ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.ALIASPROBLEM, e.getResultCode() );
@@ -435,7 +428,7 @@
             sysRoot.createSubcontext( "ou=blah,ou=abc" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -455,7 +448,7 @@
             sysRoot.createSubcontext( "ou=blah" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameAlreadyBoundException e )
+        catch ( LdapNameAlreadyBoundException e )
         {
             assertEquals( "ou=blah,ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.ENTRYALREADYEXISTS, e.getResultCode() );
@@ -479,7 +472,6 @@
     // Delete Operation Tests
     // ------------------------------------------------------------------------
 
-
     /**
      * Tests for delete failure when the entry to be deleted has child entires.
      */
@@ -493,7 +485,7 @@
             sysRoot.destroySubcontext( "ou=blah" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapContextNotEmptyException e )
+        catch ( LdapContextNotEmptyException e )
         {
             assertEquals( "ou=blah,ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOTALLOWEDONNONLEAF, e.getResultCode() );
@@ -512,7 +504,7 @@
             sysRoot.destroySubcontext( "ou=blah" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );
@@ -535,7 +527,7 @@
             sysRoot.lookup( "ou=blah" );
             fail( "Execution should never get here due to exception!" );
         }
-        catch( LdapNameNotFoundException e )
+        catch ( LdapNameNotFoundException e )
         {
             assertEquals( "ou=system", e.getResolvedName().toString() );
             assertEquals( ResultCodeEnum.NOSUCHOBJECT, e.getResultCode() );

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ComparatorNPEBugTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ComparatorNPEBugTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ComparatorNPEBugTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ComparatorNPEBugTest.java Fri Feb 10 02:48:07 2006
@@ -38,11 +38,15 @@
     /**
      * Test runs first to initialize the system.
      */
-    public void testAAA() {}
+    public void testAAA()
+    {
+    }
 
 
     /**
      * This test fails currently.
      */
-    public void testZZZ() {}
+    public void testZZZ()
+    {
+    }
 }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/CreateContextTest.java Fri Feb 10 02:48:07 2006
@@ -168,7 +168,6 @@
         assertTrue( attribute.contains( "top" ) );
         assertTrue( attribute.contains( "organizationalUnit" ) );
 
-
         /*
          * fail on recreate attempt for ou=testing00,ou=system
          */

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/DestroyContextTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/DestroyContextTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/DestroyContextTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/DestroyContextTest.java Fri Feb 10 02:48:07 2006
@@ -147,14 +147,14 @@
         /*
          * delete ou=testing00,ou=system
          */
-        sysRoot.destroySubcontext( "ou=testing00");
+        sysRoot.destroySubcontext( "ou=testing00" );
 
         try
         {
             sysRoot.lookup( "ou=testing00" );
             fail( "ou=testing00, ou=system should not exist" );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
             assertTrue( e instanceof LdapNameNotFoundException );
         }
@@ -162,14 +162,14 @@
         /*
          * delete ou=subtest,ou=testing01,ou=system
          */
-        sysRoot.destroySubcontext( "ou=subtest,ou=testing01");
+        sysRoot.destroySubcontext( "ou=subtest,ou=testing01" );
 
         try
         {
             sysRoot.lookup( "ou=subtest,ou=testing01" );
             fail( "ou=subtest,ou=testing01,ou=system should not exist" );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
             assertTrue( e instanceof LdapNameNotFoundException );
         }
@@ -177,34 +177,32 @@
         /*
          * delete ou=testing01,ou=system
          */
-        sysRoot.destroySubcontext( "ou=testing01");
+        sysRoot.destroySubcontext( "ou=testing01" );
 
         try
         {
             sysRoot.lookup( "ou=testing01" );
             fail( "ou=testing01, ou=system should not exist" );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
             assertTrue( e instanceof LdapNameNotFoundException );
         }
 
-
         /*
          * delete ou=testing01,ou=system
          */
-        sysRoot.destroySubcontext( "ou=testing02");
+        sysRoot.destroySubcontext( "ou=testing02" );
 
         try
         {
             sysRoot.lookup( "ou=testing02" );
             fail( "ou=testing02, ou=system should not exist" );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
             assertTrue( e instanceof LdapNameNotFoundException );
         }
     }
-
 
 }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ExtensibleObjectTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ExtensibleObjectTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ExtensibleObjectTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ExtensibleObjectTest.java Fri Feb 10 02:48:07 2006
@@ -51,7 +51,7 @@
         assertNotNull( attribute );
         assertTrue( attribute.contains( "top" ) );
         assertTrue( attribute.contains( "organizationalUnit" ) );
-        
+
         Attributes newattribs = new BasicAttributes( true );
         Attribute freeform = new BasicAttribute( "freeform" );
         freeform.add( "testing" );
@@ -75,6 +75,7 @@
         assertTrue( attribute.contains( "testing" ) );
     }
 
+
     public void testExtensibleObjectAdd() throws Exception
     {
         Attributes attributes = new BasicAttributes( true );
@@ -84,15 +85,15 @@
         attribute.add( "organizationalUnit" );
         attributes.put( attribute );
         attributes.put( "ou", "testing00" );
-        
+
         // WARNING: extensible objects cannot accept any arbitrary 
         // attribute.  The attribute must be defined by the schema
         // at a bare minimum or the addition will be rejected
-        
+
         // here's an attribute that is not on the MAY or MUST list for 
         // an organizationalUnit - it's our test for extensible objects
         attributes.put( "employeeType", "testing" );
-        
+
         DirContext ctx = sysRoot.createSubcontext( "ou=testing00", attributes );
         assertNotNull( ctx );
 

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/MixedCaseTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/MixedCaseTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/MixedCaseTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/MixedCaseTest.java Fri Feb 10 02:48:07 2006
@@ -40,6 +40,7 @@
 {
     String suffix = "dc=Apache,dc=Org";
 
+
     public void setUp() throws Exception
     {
 
@@ -72,6 +73,7 @@
         super.setUp();
     }
 
+
     public void testSearch() throws NamingException
     {
         SearchControls sc = new SearchControls();
@@ -81,13 +83,14 @@
 
         assertTrue( "Search should return at least one entry.", ne.hasMore() );
 
-        SearchResult sr = (SearchResult) ne.next();
+        SearchResult sr = ( SearchResult ) ne.next();
 
         assertEquals( "The entry returned should be the root entry.", suffix, sr.getName() );
 
         assertFalse( "Search should return no more entries.", ne.hasMore() );
     }
 
+
     public void testAdd() throws NamingException
     {
         String dn = "ou=Test";
@@ -109,13 +112,14 @@
 
         assertTrue( "Search should return at least one entry.", ne.hasMore() );
 
-        SearchResult sr = (SearchResult) ne.next();
+        SearchResult sr = ( SearchResult ) ne.next();
 
-        assertEquals( "The entry returned should be the entry added earlier.", dn+","+suffix, sr.getName() );
+        assertEquals( "The entry returned should be the entry added earlier.", dn + "," + suffix, sr.getName() );
 
         assertFalse( "Search should return no more entries.", ne.hasMore() );
     }
 
+
     public void testModify() throws NamingException
     {
         String dn = "ou=Test";
@@ -133,7 +137,7 @@
         assertNotNull( ctx );
 
         ModificationItem[] mods = new ModificationItem[1];
-        mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute( "description", description ));
+        mods[0] = new ModificationItem( DirContext.REPLACE_ATTRIBUTE, new BasicAttribute( "description", description ) );
 
         sysRoot.modifyAttributes( dn, mods );
 
@@ -144,9 +148,9 @@
 
         assertTrue( "Search should return at least one entry.", ne.hasMore() );
 
-        SearchResult sr = (SearchResult) ne.next();
+        SearchResult sr = ( SearchResult ) ne.next();
 
-        assertEquals( "The entry returned should be the entry added earlier.", dn+","+suffix, sr.getName() );
+        assertEquals( "The entry returned should be the entry added earlier.", dn + "," + suffix, sr.getName() );
 
         attributes = sr.getAttributes();
         attribute = attributes.get( "description" );
@@ -156,6 +160,7 @@
         assertFalse( "Search should return no more entries.", ne.hasMore() );
     }
 
+
     public void testDelete() throws NamingException
     {
         String dn = "ou=Test";
@@ -175,15 +180,17 @@
         SearchControls sc = new SearchControls();
         sc.setSearchScope( SearchControls.OBJECT_SCOPE );
 
-        try {
+        try
+        {
             sysRoot.search( dn, "(objectClass=*)", sc );
 
-            fail( "Search should throw exception.");
+            fail( "Search should throw exception." );
 
-        } catch (LdapNameNotFoundException e) {
+        }
+        catch ( LdapNameNotFoundException e )
+        {
             // ignore
         }
     }
 
 }
-

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ModifyContextTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ModifyContextTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ModifyContextTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ModifyContextTest.java Fri Feb 10 02:48:07 2006
@@ -136,7 +136,7 @@
             assertTrue( attribute.contains( "top" ) );
             assertTrue( attribute.contains( "organizationalUnit" ) );
         }
-        catch( NamingException e )
+        catch ( NamingException e )
         {
         }
     }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ObjStateFactoryTest.java Fri Feb 10 02:48:07 2006
@@ -72,10 +72,10 @@
         assertEquals( "committer", attrs.get( "description" ).get() );
     }
 
-
     public static class PersonStateFactory implements DirStateFactory
     {
-        public Result getStateToBind( Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs ) throws NamingException
+        public Result getStateToBind( Object obj, Name name, Context nameCtx, Hashtable environment, Attributes inAttrs )
+            throws NamingException
         {
             // Only interested in Person objects
             if ( obj instanceof Person )
@@ -85,7 +85,7 @@
 
                 if ( inAttrs == null )
                 {
-                    outAttrs = new BasicAttributes(true);
+                    outAttrs = new BasicAttributes( true );
                 }
                 else
                 {
@@ -146,7 +146,8 @@
         }
 
 
-        public Object getStateToBind( Object obj, Name name, Context nameCtx, Hashtable environment ) throws NamingException
+        public Object getStateToBind( Object obj, Name name, Context nameCtx, Hashtable environment )
+            throws NamingException
         {
             throw new UnsupportedOperationException( "Please use directory support overload with Attributes argument." );
         }
@@ -154,52 +155,51 @@
 
     public static class PersonObjectFactory implements DirObjectFactory
     {
-        public Object getObjectInstance( Object obj, Name name, Context nameCtx, Hashtable environment, Attributes attrs ) throws Exception
+        public Object getObjectInstance( Object obj, Name name, Context nameCtx, Hashtable environment, Attributes attrs )
+            throws Exception
         {
             // Only interested in Attributes with "person" objectclass
             // System.out.println("object factory: " + attrs);
-            Attribute oc = (attrs != null ? attrs.get("objectclass") : null);
-            if (oc != null && oc.contains("person"))
+            Attribute oc = ( attrs != null ? attrs.get( "objectclass" ) : null );
+            if ( oc != null && oc.contains( "person" ) )
             {
                 Attribute attr;
                 String passwd = null;
 
-            // Extract the password
-            attr = attrs.get("userPassword");
-            if (attr != null)
-            {
-                Object pw = attr.get();
-
-                if ( pw instanceof String )
-                    passwd = ( String ) pw;
-                else
-                    passwd = new String((byte[]) pw);
-            }
-
-                return new Person(
-                      (String)attrs.get("sn").get(),
-                      (String)attrs.get("cn").get(),
-                      passwd,
-                      (attr=attrs.get("telephoneNumber")) != null ? (String)attr.get() : null,
-                      (attr=attrs.get("seealso")) != null ? (String)attr.get() : null,
-                      (attr=attrs.get("description")) != null ? (String)attr.get() : null);
+                // Extract the password
+                attr = attrs.get( "userPassword" );
+                if ( attr != null )
+                {
+                    Object pw = attr.get();
+
+                    if ( pw instanceof String )
+                        passwd = ( String ) pw;
+                    else
+                        passwd = new String( ( byte[] ) pw );
+                }
+
+                return new Person( ( String ) attrs.get( "sn" ).get(), ( String ) attrs.get( "cn" ).get(), passwd,
+                    ( attr = attrs.get( "telephoneNumber" ) ) != null ? ( String ) attr.get() : null, ( attr = attrs
+                        .get( "seealso" ) ) != null ? ( String ) attr.get() : null,
+                    ( attr = attrs.get( "description" ) ) != null ? ( String ) attr.get() : null );
             }
             return null;
         }
 
 
-        public Object getObjectInstance( Object obj, Name name, Context nameCtx, Hashtable environment ) throws Exception
+        public Object getObjectInstance( Object obj, Name name, Context nameCtx, Hashtable environment )
+            throws Exception
         {
             throw new UnsupportedOperationException( "Please use directory support overload with Attributes argument." );
         }
     }
 
-
     public static class Person
     {
         private String sn, cn, pwd, tele, seealso, desc;
 
-        public Person( String sn, String cn, String pwd, String tele, String seealso, String desc )
+
+        public Person(String sn, String cn, String pwd, String tele, String seealso, String desc)
         {
             this.sn = sn;
             this.cn = cn;

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ReferralTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ReferralTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ReferralTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ReferralTest.java Fri Feb 10 02:48:07 2006
@@ -57,27 +57,27 @@
     private static final boolean SUNJNDI = false;
     private boolean sunjndi = System.getProperty( "sunjndi" ) != null || SUNJNDI;
     TestData td = new TestData();
-    
-    
+
+
     public void setUp() throws Exception
     {
-        if ( ! sunjndi )
+        if ( !sunjndi )
         {
             super.setUp();
         }
-        
+
         addReferralEntry();
     }
-    
-    
+
+
     public void tearDown() throws Exception
     {
         if ( td.refCtx != null )
         {
             td.refCtx.close();
         }
-        
-        if ( ! sunjndi )
+
+        if ( !sunjndi )
         {
             super.tearDown();
         }
@@ -87,7 +87,7 @@
         }
     }
 
-    
+
     /*
      * NOTE: We may encounter conflicting circumstances where the ManageDsaIT control
      * is included in the request controls yet the Context.REFERRAL is set to 
@@ -108,11 +108,11 @@
      */
     private LdapContext getSystemRoot() throws NamingException
     {
-        if ( ! sunjndi )
+        if ( !sunjndi )
         {
             return sysRoot;
         }
-        
+
         Hashtable env = new Hashtable();
         env.put( "java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory" );
         env.put( "java.naming.provider.url", "ldap://hertz.karasulu.homeip.net:10390/ou=system" );
@@ -121,16 +121,16 @@
         env.put( "java.naming.security.authentication", "simple" );
         return new InitialLdapContext( env, null );
     }
-    
-    
-    class TestData {
+
+    class TestData
+    {
         LdapContext rootCtx;
         Name ctxDn;
         LdapContext refCtx;
         List refs;
     }
-    
-    
+
+
     public void addReferralEntry() throws NamingException
     {
         String ref0 = "ldap://fermi:10389/ou=users,ou=system";
@@ -141,7 +141,7 @@
         // -------------------------------------------------------------------
         // Adds a referral entry regardless of referral handling settings
         // -------------------------------------------------------------------
-        
+
         // Add a referral entry ( should be fine with or without the control )
         Attributes referral = new BasicAttributes( "objectClass", "top", true );
         referral.get( "objectClass" ).add( "referral" );
@@ -153,13 +153,27 @@
 
         // Just in case if server is a remote server destroy remaing referral
         td.rootCtx.addToEnvironment( Context.REFERRAL, "ignore" );
-        try { td.rootCtx.destroySubcontext( "uid=akarasulu,ou=users" ); } catch( NameNotFoundException e ) { e.printStackTrace(); }
-        try { td.rootCtx.destroySubcontext( "ou=users" ); } catch( NameNotFoundException e ) { e.printStackTrace(); }
+        try
+        {
+            td.rootCtx.destroySubcontext( "uid=akarasulu,ou=users" );
+        }
+        catch ( NameNotFoundException e )
+        {
+            e.printStackTrace();
+        }
+        try
+        {
+            td.rootCtx.destroySubcontext( "ou=users" );
+        }
+        catch ( NameNotFoundException e )
+        {
+            e.printStackTrace();
+        }
         try
         {
             td.refCtx = ( LdapContext ) td.rootCtx.createSubcontext( "ou=users", referral );
         }
-        catch( NameAlreadyBoundException e )
+        catch ( NameAlreadyBoundException e )
         {
             td.refCtx = ( LdapContext ) td.rootCtx.lookup( "ou=users" );
         }
@@ -168,19 +182,18 @@
         assertTrue( referral.get( "objectClass" ).contains( "referral" ) );
     }
 
-    
+
     public void checkAncestorReferrals( ReferralException e ) throws Exception
     {
         assertEquals( "ldap://fermi:10389", e.getReferralInfo() );
         assertTrue( e.skipReferral() );
-        assertEquals( "ldap://hertz:10389/cn=alex karasulu,ou=apache,ou=users,dc=example,dc=com", 
-            e.getReferralInfo() );
+        assertEquals( "ldap://hertz:10389/cn=alex karasulu,ou=apache,ou=users,dc=example,dc=com", e.getReferralInfo() );
         assertTrue( e.skipReferral() );
         assertEquals( "ldap://maxwell:10389", e.getReferralInfo() );
         assertFalse( e.skipReferral() );
     }
 
-    
+
     public void checkParentReferrals( ReferralException e ) throws Exception
     {
         assertEquals( "ldap://fermi:10389", e.getReferralInfo() );
@@ -190,8 +203,8 @@
         assertEquals( "ldap://maxwell:10389", e.getReferralInfo() );
         assertFalse( e.skipReferral() );
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for an add operation with the parent context being a referral.
@@ -211,18 +224,18 @@
         userEntry.put( "sn", "karasulu" );
         userEntry.put( "cn", "alex karasulu" );
 
-        try 
+        try
         {
             td.refCtx.createSubcontext( "cn=alex karasulu", userEntry );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for an add operation with an ancestor context being a referral.
@@ -242,18 +255,18 @@
         userEntry.put( "sn", "karasulu" );
         userEntry.put( "cn", "alex karasulu" );
 
-        try 
+        try
         {
             td.refCtx.createSubcontext( "cn=alex karasulu,ou=apache", userEntry );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for an delete operation with the parent context being a referral.
@@ -269,18 +282,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.destroySubcontext( "cn=alex karasulu" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a delete operation with an ancestor context being a referral.
@@ -296,18 +309,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.destroySubcontext( "cn=alex karasulu,ou=apache" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for an delete operation with the parent context being a referral.
@@ -323,7 +336,7 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             if ( td.refCtx instanceof ServerLdapContext )
             {
@@ -337,13 +350,13 @@
             }
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a compare operation with an ancestor context being a referral.
@@ -359,7 +372,7 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             if ( td.refCtx instanceof ServerLdapContext )
             {
@@ -373,13 +386,13 @@
             }
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a modify operation with the parent context being a referral.
@@ -395,19 +408,19 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
-            td.refCtx.modifyAttributes( "cn=alex karasulu", DirContext.ADD_ATTRIBUTE, 
-                new BasicAttributes( "description", "just some text", true ) );
+            td.refCtx.modifyAttributes( "cn=alex karasulu", DirContext.ADD_ATTRIBUTE, new BasicAttributes(
+                "description", "just some text", true ) );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a modify operation with an ancestor context being a referral.
@@ -423,19 +436,19 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
-            td.refCtx.modifyAttributes( "cn=alex karasulu,ou=apache", DirContext.ADD_ATTRIBUTE, 
-                new BasicAttributes( "description", "just some text", true ) );
+            td.refCtx.modifyAttributes( "cn=alex karasulu,ou=apache", DirContext.ADD_ATTRIBUTE, new BasicAttributes(
+                "description", "just some text", true ) );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a modify operation with the parent context being a referral.
@@ -451,20 +464,20 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
-            ModificationItem[] mods = new ModificationItem[] { new ModificationItem( 
-                DirContext.ADD_ATTRIBUTE, new BasicAttribute( "description", "just some text" ) ) };
+            ModificationItem[] mods = new ModificationItem[]
+                { new ModificationItem( DirContext.ADD_ATTRIBUTE, new BasicAttribute( "description", "just some text" ) ) };
             td.refCtx.modifyAttributes( "cn=alex karasulu", mods );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a modify operation with an ancestor context being a referral.
@@ -480,20 +493,20 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
-            ModificationItem[] mods = new ModificationItem[] { new ModificationItem( 
-                DirContext.ADD_ATTRIBUTE, new BasicAttribute( "description", "just some text" ) ) };
+            ModificationItem[] mods = new ModificationItem[]
+                { new ModificationItem( DirContext.ADD_ATTRIBUTE, new BasicAttribute( "description", "just some text" ) ) };
             td.refCtx.modifyAttributes( "cn=alex karasulu,ou=apache", mods );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
 
-    
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a modify rdn interceptor operation (corresponds to a subset of the modify 
@@ -510,18 +523,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.rename( "cn=alex karasulu", "cn=aok" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a modify rdn interceptor operation (corresponds to a subset of the modify 
@@ -538,18 +551,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.rename( "cn=alex karasulu,ou=apache", "cn=aok,ou=apache" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
 
-    
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -566,18 +579,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.rename( "cn=alex karasulu", "cn=alex karasulu,ou=groups" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -594,18 +607,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.rename( "cn=alex karasulu,ou=apache", "cn=alex karasulu,ou=groups" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
 
-    
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -622,18 +635,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.rename( "cn=alex karasulu", "cn=aok,ou=groups" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkParentReferrals( e );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -650,18 +663,18 @@
         // -------------------------------------------------------------------
 
         td.refCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.refCtx.rename( "cn=alex karasulu,ou=apache", "cn=aok,ou=groups" );
             fail( "Should fail here throwing a ReferralException" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             checkAncestorReferrals( e );
         }
     }
 
-    
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -679,18 +692,18 @@
 
         createLocalUser();
         td.rootCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.rootCtx.rename( "cn=akarasulu", "cn=akarasulu,ou=users" );
             fail( "Should fail here throwing a LdapNamingException with ResultCodeEnum = AFFECTSMULTIPLEDSAS" );
         }
-        catch( LdapNamingException e )
+        catch ( LdapNamingException e )
         {
             assertTrue( e.getResultCode() == ResultCodeEnum.AFFECTSMULTIPLEDSAS );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -708,18 +721,18 @@
 
         createDeepLocalUser();
         td.rootCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.rootCtx.rename( "cn=akarasulu,ou=deep", "cn=akarasulu,ou=users" );
             fail( "Should fail here throwing a LdapNamingException with ResultCodeEnum = AFFECTSMULTIPLEDSAS" );
         }
-        catch( LdapNamingException e )
+        catch ( LdapNamingException e )
         {
             assertTrue( e.getResultCode() == ResultCodeEnum.AFFECTSMULTIPLEDSAS );
         }
     }
 
-    
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -737,18 +750,18 @@
 
         createLocalUser();
         td.rootCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.rootCtx.rename( "cn=akarasulu", "cn=aok,ou=users" );
             fail( "Should fail here throwing a LdapNamingException with ResultCodeEnum = AFFECTSMULTIPLEDSAS" );
         }
-        catch( LdapNamingException e )
+        catch ( LdapNamingException e )
         {
             assertTrue( e.getResultCode() == ResultCodeEnum.AFFECTSMULTIPLEDSAS );
         }
     }
-    
-    
+
+
     /**
      * Checks for correct core behavoir when Context.REFERRAL is set to <b>throw</b>
      * for a move interceptor operation (corresponds to a subset of the modify 
@@ -766,18 +779,18 @@
 
         createDeepLocalUser();
         td.rootCtx.addToEnvironment( Context.REFERRAL, "throw" );
-        try 
+        try
         {
             td.rootCtx.rename( "cn=akarasulu,ou=deep", "cn=aok,ou=users" );
             fail( "Should fail here throwing a LdapNamingException with ResultCodeEnum = AFFECTSMULTIPLEDSAS" );
         }
-        catch( LdapNamingException e )
+        catch ( LdapNamingException e )
         {
             assertTrue( e.getResultCode() == ResultCodeEnum.AFFECTSMULTIPLEDSAS );
         }
     }
-    
-    
+
+
     public void createLocalUser() throws Exception
     {
         LdapContext userCtx = null;
@@ -786,12 +799,18 @@
         referral.put( "cn", "akarasulu" );
         referral.put( "sn", "karasulu" );
 
-        try { td.rootCtx.destroySubcontext( "uid=akarasulu" ); } catch( NameNotFoundException e ) {}
+        try
+        {
+            td.rootCtx.destroySubcontext( "uid=akarasulu" );
+        }
+        catch ( NameNotFoundException e )
+        {
+        }
         try
         {
             userCtx = ( LdapContext ) td.rootCtx.createSubcontext( "cn=akarasulu", referral );
         }
-        catch( NameAlreadyBoundException e )
+        catch ( NameAlreadyBoundException e )
         {
             td.refCtx = ( LdapContext ) td.rootCtx.lookup( "cn=akarasulu" );
         }
@@ -799,8 +818,8 @@
         assertTrue( referral.get( "cn" ).contains( "akarasulu" ) );
         assertTrue( referral.get( "sn" ).contains( "karasulu" ) );
     }
-    
-    
+
+
     public void createDeepLocalUser() throws Exception
     {
         LdapContext userCtx = null;
@@ -809,14 +828,26 @@
         referral.put( "cn", "akarasulu" );
         referral.put( "sn", "karasulu" );
 
-        try { td.rootCtx.destroySubcontext( "uid=akarasulu,ou=deep" ); } catch( NameNotFoundException e ) {}
-        try { td.rootCtx.destroySubcontext( "ou=deep" ); } catch( NameNotFoundException e ) {}
+        try
+        {
+            td.rootCtx.destroySubcontext( "uid=akarasulu,ou=deep" );
+        }
+        catch ( NameNotFoundException e )
+        {
+        }
+        try
+        {
+            td.rootCtx.destroySubcontext( "ou=deep" );
+        }
+        catch ( NameNotFoundException e )
+        {
+        }
         try
         {
             td.rootCtx.createSubcontext( "ou=deep" );
             userCtx = ( LdapContext ) td.rootCtx.createSubcontext( "cn=akarasulu,ou=deep", referral );
         }
-        catch( NameAlreadyBoundException e )
+        catch ( NameAlreadyBoundException e )
         {
             td.refCtx = ( LdapContext ) td.rootCtx.lookup( "cn=akarasulu,ou=deep" );
         }
@@ -824,8 +855,8 @@
         assertTrue( referral.get( "cn" ).contains( "akarasulu" ) );
         assertTrue( referral.get( "sn" ).contains( "karasulu" ) );
     }
-    
-    
+
+
     public void testSearchBaseIsReferral() throws Exception
     {
         SearchControls controls = new SearchControls();
@@ -836,7 +867,7 @@
             td.rootCtx.search( "ou=users", "(objectClass=*)", controls );
             fail( "should never get here" );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             assertEquals( "ldap://fermi:10389/ou=users,ou=system??sub", e.getReferralInfo() );
             assertTrue( e.skipReferral() );
@@ -847,7 +878,7 @@
         }
     }
 
-    
+
     public void testSearchBaseParentIsReferral() throws Exception
     {
         SearchControls controls = new SearchControls();
@@ -857,7 +888,7 @@
         {
             td.refCtx.search( "cn=alex karasulu", "(objectClass=*)", controls );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             assertEquals( "ldap://fermi:10389/cn=alex karasulu,ou=users,ou=system??base", e.getReferralInfo() );
             assertTrue( e.skipReferral() );
@@ -868,7 +899,7 @@
         }
     }
 
-    
+
     public void testSearchBaseAncestorIsReferral() throws Exception
     {
         SearchControls controls = new SearchControls();
@@ -878,18 +909,20 @@
         {
             td.refCtx.search( "cn=alex karasulu,ou=apache", "(objectClass=*)", controls );
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             assertEquals( "ldap://fermi:10389/cn=alex karasulu,ou=apache,ou=users,ou=system??base", e.getReferralInfo() );
             assertTrue( e.skipReferral() );
-            assertEquals( "ldap://hertz:10389/cn=alex karasulu,ou=apache,ou=users,dc=example,dc=com??base", e.getReferralInfo() );
+            assertEquals( "ldap://hertz:10389/cn=alex karasulu,ou=apache,ou=users,dc=example,dc=com??base", e
+                .getReferralInfo() );
             assertTrue( e.skipReferral() );
-            assertEquals( "ldap://maxwell:10389/cn=alex karasulu,ou=apache,ou=users,ou=system??base", e.getReferralInfo() );
+            assertEquals( "ldap://maxwell:10389/cn=alex karasulu,ou=apache,ou=users,ou=system??base", e
+                .getReferralInfo() );
             assertFalse( e.skipReferral() );
         }
     }
 
-    
+
     public void testSearchContinuations() throws Exception
     {
         SearchControls controls = new SearchControls();
@@ -898,29 +931,29 @@
         Map results = new HashMap();
         while ( list.hasMore() )
         {
-            SearchResult result = ( SearchResult) list.next();
-            results.put ( result.getName(), result );
+            SearchResult result = ( SearchResult ) list.next();
+            results.put( result.getName(), result );
         }
-        
+
         assertNotNull( results.get( "ou=users,ou=system" ) );
-        
+
         // -------------------------------------------------------------------
         // Now we will throw exceptions when searching for referrals 
         // -------------------------------------------------------------------
-        
+
         td.rootCtx.addToEnvironment( Context.REFERRAL, "throw" );
         list = td.rootCtx.search( "", "(objectClass=*)", controls );
         results = new HashMap();
-        
+
         try
         {
             while ( list.hasMore() )
             {
                 SearchResult result = ( SearchResult ) list.next();
-                results.put ( result.getName(), result );
+                results.put( result.getName(), result );
             }
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             assertEquals( "ldap://fermi:10389/ou=users,ou=system??sub", e.getReferralInfo() );
             assertTrue( e.skipReferral() );
@@ -929,24 +962,24 @@
             assertEquals( "ldap://maxwell:10389/ou=users,ou=system??sub", e.getReferralInfo() );
             assertFalse( e.skipReferral() );
         }
-        
+
         assertNull( results.get( "ou=users" ) );
 
         // try again but this time with single level scope
-        
+
         controls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
         list = td.rootCtx.search( "", "(objectClass=*)", controls );
         results = new HashMap();
-        
+
         try
         {
             while ( list.hasMore() )
             {
                 SearchResult result = ( SearchResult ) list.next();
-                results.put ( result.getName(), result );
+                results.put( result.getName(), result );
             }
         }
-        catch( ReferralException e )
+        catch ( ReferralException e )
         {
             assertEquals( "ldap://fermi:10389/ou=users,ou=system??base", e.getReferralInfo() );
             assertTrue( e.skipReferral() );
@@ -955,7 +988,7 @@
             assertEquals( "ldap://maxwell:10389/ou=users,ou=system??base", e.getReferralInfo() );
             assertFalse( e.skipReferral() );
         }
-        
+
         assertNull( results.get( "ou=users" ) );
     }
 }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SearchContextTest.java Fri Feb 10 02:48:07 2006
@@ -62,7 +62,7 @@
 
         DirContext ctx = sysRoot.createSubcontext( "ou=testing00", attributes );
         assertNotNull( ctx );
-        
+
         ctx = ( DirContext ) sysRoot.lookup( "ou=testing00" );
         assertNotNull( ctx );
         attributes = ctx.getAttributes( "" );
@@ -194,7 +194,7 @@
         assertTrue( map.containsKey( "ou=subtest,ou=testing01,ou=system" ) );
     }
 
-    
+
     public void testSearchSubstringSubTreeLevel() throws NamingException
     {
         SearchControls controls = new SearchControls();
@@ -219,7 +219,7 @@
         assertTrue( map.containsKey( "ou=subtest,ou=testing01,ou=system" ) );
     }
 
-    
+
     public void testSearchFilterArgs() throws NamingException
     {
         SearchControls controls = new SearchControls();
@@ -228,7 +228,8 @@
         sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.NEVERDEREFALIASES.getName() );
         HashMap map = new HashMap();
 
-        NamingEnumeration list = sysRoot.search( "", "(| (ou={0}) (ou={1}))", new Object[] {"testing00", "testing01"}, controls );
+        NamingEnumeration list = sysRoot.search( "", "(| (ou={0}) (ou={1}))", new Object[]
+            { "testing00", "testing01" }, controls );
         while ( list.hasMore() )
         {
             SearchResult result = ( SearchResult ) list.next();
@@ -239,8 +240,8 @@
         assertTrue( map.containsKey( "ou=testing00,ou=system" ) );
         assertTrue( map.containsKey( "ou=testing01,ou=system" ) );
     }
-    
-    
+
+
     public void testSearchSizeLimit() throws NamingException
     {
         SearchControls controls = new SearchControls();
@@ -251,7 +252,7 @@
 
         HashMap map = new HashMap();
         NamingEnumeration list = sysRoot.search( "", "(ou=*)", controls );
-        
+
         try
         {
             while ( list.hasMore() )
@@ -261,7 +262,9 @@
             }
             fail( "Should not get here due to a SizeLimitExceededException" );
         }
-        catch( LdapSizeLimitExceededException e ){}
+        catch ( LdapSizeLimitExceededException e )
+        {
+        }
         assertEquals( "Expected number of results returned was incorrect", 7, map.size() );
     }
 
@@ -277,8 +280,10 @@
         HashMap map = new HashMap();
         NamingEnumeration list = sysRoot.search( "", "(ou=*)", controls );
         SearchResultFilteringEnumeration srfe = ( SearchResultFilteringEnumeration ) list;
-        srfe.addResultFilter( new SearchResultFilter() {
-            public boolean accept(Invocation invocation, SearchResult result, SearchControls controls) throws NamingException
+        srfe.addResultFilter( new SearchResultFilter()
+        {
+            public boolean accept( Invocation invocation, SearchResult result, SearchControls controls )
+                throws NamingException
             {
                 try
                 {
@@ -290,8 +295,8 @@
                 }
                 return true;
             }
-        });
-        
+        } );
+
         try
         {
             while ( list.hasMore() )
@@ -301,7 +306,9 @@
             }
             fail( "Should not get here due to a TimeLimitExceededException" );
         }
-        catch( LdapTimeLimitExceededException e ){}
+        catch ( LdapTimeLimitExceededException e )
+        {
+        }
         assertEquals( "Expected number of results returned was incorrect", 1, map.size() );
     }
 }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ShutdownTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ShutdownTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ShutdownTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/ShutdownTest.java Fri Feb 10 02:48:07 2006
@@ -61,7 +61,7 @@
 
         // restart the system now
         setSysRoot( "uid=admin,ou=system", "secret", configuration );
-        
+
         // Shutdown again (tearDown is overriden)
         setSysRoot( "uid=admin,ou=system", "secret", new ShutdownConfiguration() );
     }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SyncTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SyncTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SyncTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/jndi/SyncTest.java Fri Feb 10 02:48:07 2006
@@ -53,7 +53,7 @@
     public void testPostSyncLookup() throws Exception
     {
         sysRoot = setSysRoot( "uid=admin,ou=system", "secret", new SyncConfiguration() );
-        
+
         Attributes users = sysRoot.getAttributes( "ou=users" );
 
         // assert making sure the entry is ok

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/normalization/NormalizationServiceTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/normalization/NormalizationServiceTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/normalization/NormalizationServiceTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/normalization/NormalizationServiceTest.java Fri Feb 10 02:48:07 2006
@@ -36,8 +36,8 @@
     {
         super.setLoadClass( getClass() );
     }
-    
-    
+
+
     public void testDireve308Example() throws NamingException
     {
         Attributes attrs = sysRoot.getAttributes( "ou=corporate category\\, operations,ou=direct report view" );

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/BinaryAttributeFilterTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/BinaryAttributeFilterTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/BinaryAttributeFilterTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/BinaryAttributeFilterTest.java Fri Feb 10 02:48:07 2006
@@ -50,37 +50,38 @@
         sysRoot.createSubcontext( "ou=test", attributes );
 
         // test without turning on the property
-        DirContext ctx = ( DirContext ) sysRoot.lookup( "ou=test" ) ;
+        DirContext ctx = ( DirContext ) sysRoot.lookup( "ou=test" );
         Attribute ou = ctx.getAttributes( "" ).get( "ou" );
         Object value = ou.get();
         assertTrue( value instanceof String );
 
         // test with the property now making ou into a binary value
         sysRoot.addToEnvironment( BINARY_KEY, "ou" );
-        ctx = ( DirContext ) sysRoot.lookup( "ou=test" ) ;
+        ctx = ( DirContext ) sysRoot.lookup( "ou=test" );
         ou = ctx.getAttributes( "" ).get( "ou" );
         value = ou.get();
         assertEquals( "test", value );
 
         // try krb5Key which should be binary automatically - use ou as control
-        byte[] keyValue = new byte[] { 0x45, 0x23, 0x7d, 0x7f };
+        byte[] keyValue = new byte[]
+            { 0x45, 0x23, 0x7d, 0x7f };
         attributes.put( "jpegPhoto", keyValue );
         sysRoot.createSubcontext( "ou=anothertest", attributes );
-        ctx = ( DirContext ) sysRoot.lookup( "ou=anothertest" ) ;
+        ctx = ( DirContext ) sysRoot.lookup( "ou=anothertest" );
         ou = ctx.getAttributes( "" ).get( "ou" );
         value = ou.get();
         assertEquals( "anothertest", value );
         Attribute jpegPhoto = ctx.getAttributes( "" ).get( "jpegPhoto" );
         value = jpegPhoto.get();
         assertTrue( value instanceof byte[] );
-        assertEquals( "0x45 0x23 0x7D 0x7F ", StringTools.dumpBytes( (byte[])value ) );
+        assertEquals( "0x45 0x23 0x7D 0x7F ", StringTools.dumpBytes( ( byte[] ) value ) );
 
         // try jpegPhoto which should be binary automatically but use String to
         // create so we should still get back a byte[] - use ou as control
         attributes.remove( "jpegPhoto" );
         attributes.put( "jpegPhoto", "testing a string" );
         sysRoot.createSubcontext( "ou=yetanothertest", attributes );
-        ctx = ( DirContext ) sysRoot.lookup( "ou=yetanothertest" ) ;
+        ctx = ( DirContext ) sysRoot.lookup( "ou=yetanothertest" );
         ou = ctx.getAttributes( "" ).get( "ou" );
         value = ou.get();
         assertEquals( "yetanothertest", value );

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/operational/OperationalAttributeServiceTest.java Fri Feb 10 02:48:07 2006
@@ -75,8 +75,7 @@
         ctls.setReturningAttributes( new String[]
             { "ou", "createTimestamp", "creatorsName" } );
 
-        sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP,
-                DerefAliasesEnum.NEVERDEREFALIASES_NAME );
+        sysRoot.addToEnvironment( DerefAliasesEnum.JNDI_PROP, DerefAliasesEnum.NEVERDEREFALIASES_NAME );
         NamingEnumeration list;
         list = sysRoot.search( "", "(ou=testing00)", ctls );
         SearchResult result = ( SearchResult ) list.next();
@@ -113,7 +112,8 @@
         assertNull( attributes.get( "createTimestamp" ) );
 
         // now we ask for all the op attributes and check to get them
-        String[] ids = new String[] { "creatorsName", "createTimestamp" };
+        String[] ids = new String[]
+            { "creatorsName", "createTimestamp" };
         controls.setReturningAttributes( ids );
         list = sysRoot.search( "", "(objectClass=*)", controls );
         result = ( SearchResult ) list.next();
@@ -136,8 +136,9 @@
      */
     public void testConfirmNonAdminUserDnIsCreatorsName() throws NamingException
     {
-        Attributes attributes = sysRoot.getAttributes( "uid=akarasulu,ou=users", new String[] { "creatorsName" } );
-        
+        Attributes attributes = sysRoot.getAttributes( "uid=akarasulu,ou=users", new String[]
+            { "creatorsName" } );
+
         assertFalse( "uid=akarasulu,ou=users,ou=system".equals( attributes.get( "creatorsName" ).get() ) );
     }
 }

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/prefs/ServerSystemPreferencesTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/prefs/ServerSystemPreferencesTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/prefs/ServerSystemPreferencesTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/prefs/ServerSystemPreferencesTest.java Fri Feb 10 02:48:07 2006
@@ -33,13 +33,15 @@
 public class ServerSystemPreferencesTest extends AbstractAdminTestCase
 {
     private ServerSystemPreferences prefs;
-    
+
+
     public void setUp() throws Exception
     {
         super.setUp();
         prefs = new ServerSystemPreferences();
     }
-    
+
+
     /**
      * Tests to make sure the system preferences root has entry (test, abc123).
      */
@@ -48,6 +50,7 @@
         assertEquals( "sysPrefRoot", prefs.get( "prefNodeName", "not the value" ) );
     }
 
+
     /**
      * Tests the creation and use of a new preferences node.
      *
@@ -86,7 +89,7 @@
 
         assertEquals( true, testNode.getBoolean( "boolKey", false ) );
         assertTrue( 3.14 == testNode.getDouble( "doubleKey", 9.20 ) );
-        assertTrue( (float) 3.14 == testNode.getFloat( "floatKey", (float) 3.90 ) );
+        assertTrue( ( float ) 3.14 == testNode.getFloat( "floatKey", ( float ) 3.90 ) );
         assertEquals( 345, testNode.getInt( "intKey", 87 ) );
         assertEquals( 75449559185447L, testNode.getLong( "longKey", 75449547L ) );
     }
@@ -116,7 +119,7 @@
 
         assertEquals( true, testNode.getBoolean( "boolKey", false ) );
         assertTrue( 3.14 == testNode.getDouble( "doubleKey", 9.20 ) );
-        assertTrue( (float) 3.14 == testNode.getFloat( "floatKey", (float) 3.90 ) );
+        assertTrue( ( float ) 3.14 == testNode.getFloat( "floatKey", ( float ) 3.90 ) );
         assertEquals( 345, testNode.getInt( "intKey", 87 ) );
         assertEquals( 75449559185447L, testNode.getLong( "longKey", 75449547L ) );
 

Modified: directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/schema/SchemaServiceTest.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/schema/SchemaServiceTest.java?rev=376623&r1=376622&r2=376623&view=diff
==============================================================================
--- directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/schema/SchemaServiceTest.java (original)
+++ directory/sandbox/akarasulu/rc1/apacheds/core-unit/src/test/java/org/apache/directory/server/core/schema/SchemaServiceTest.java Fri Feb 10 02:48:07 2006
@@ -44,8 +44,8 @@
         super.setLdifPath( "./nonspecific.ldif", getClass() );
         super.setUp();
     }
-    
-    
+
+
     public void testFillInObjectClasses() throws NamingException
     {
         Attribute ocs = sysRoot.getAttributes( "cn=person0" ).get( "objectClass" );
@@ -82,17 +82,17 @@
 
         // admin is extra
         assertEquals( 4, persons.size() );
-        
+
         Attributes person = null;
         Attribute ocs = null;
-        
+
         person = ( Attributes ) persons.get( "cn=person0,ou=system" );
         assertNotNull( person );
         ocs = person.get( "objectClass" );
         assertEquals( 2, ocs.size() );
         assertTrue( ocs.contains( "top" ) );
         assertTrue( ocs.contains( "person" ) );
-        
+
         person = ( Attributes ) persons.get( "cn=person1,ou=system" );
         assertNotNull( person );
         ocs = person.get( "objectClass" );
@@ -100,7 +100,7 @@
         assertTrue( ocs.contains( "top" ) );
         assertTrue( ocs.contains( "person" ) );
         assertTrue( ocs.contains( "organizationalPerson" ) );
-        
+
         person = ( Attributes ) persons.get( "cn=person2,ou=system" );
         assertNotNull( person );
         ocs = person.get( "objectClass" );
@@ -123,13 +123,13 @@
             SearchResult result = ( SearchResult ) results.next();
             orgPersons.put( result.getName(), result.getAttributes() );
         }
-        
+
         // admin is extra
         assertEquals( 3, orgPersons.size() );
-        
+
         Attributes orgPerson = null;
         Attribute ocs = null;
-        
+
         orgPerson = ( Attributes ) orgPersons.get( "cn=person1,ou=system" );
         assertNotNull( orgPerson );
         ocs = orgPerson.get( "objectClass" );
@@ -137,7 +137,7 @@
         assertTrue( ocs.contains( "top" ) );
         assertTrue( ocs.contains( "person" ) );
         assertTrue( ocs.contains( "organizationalPerson" ) );
-        
+
         orgPerson = ( Attributes ) orgPersons.get( "cn=person2,ou=system" );
         assertNotNull( orgPerson );
         ocs = orgPerson.get( "objectClass" );
@@ -160,13 +160,13 @@
             SearchResult result = ( SearchResult ) results.next();
             inetOrgPersons.put( result.getName(), result.getAttributes() );
         }
-        
+
         // admin is extra
         assertEquals( 2, inetOrgPersons.size() );
-        
+
         Attributes inetOrgPerson = null;
         Attribute ocs = null;
-        
+
         inetOrgPerson = ( Attributes ) inetOrgPersons.get( "cn=person2,ou=system" );
         assertNotNull( inetOrgPerson );
         ocs = inetOrgPerson.get( "objectClass" );



Mime
View raw message