You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2006/07/23 13:29:24 UTC

svn commit: r424715 - /directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java

Author: elecharny
Date: Sun Jul 23 04:29:24 2006
New Revision: 424715

URL: http://svn.apache.org/viewvc?rev=424715&view=rev
Log:
Removed the commented serialization test

Modified:
    directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java

Modified: directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java
URL: http://svn.apache.org/viewvc/directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java?rev=424715&r1=424714&r2=424715&view=diff
==============================================================================
--- directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java (original)
+++ directory/branches/shared/optimization/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java Sun Jul 23 04:29:24 2006
@@ -25,13 +25,6 @@
 import org.apache.directory.shared.ldap.message.LockableAttributesImpl;
 import org.apache.directory.shared.ldap.util.ArrayUtils;
 
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.ObjectInputStream;
-import java.io.ObjectOutputStream;
-
-
 /**
  * Test cases for the methods of the LockableAttributeImpl class.
  * 
@@ -171,23 +164,4 @@
 
         assertTrue( "both implementations should produce the same outcome", attrs0.equals( attrs1 ) );
     }
-    
-    /*public void testSerialization() throws IOException, ClassNotFoundException
-    {
-        LockableAttributesImpl attrs0 = new LockableAttributesImpl();
-        attrs0.put( "attr0", "value0" );
-        attrs0.put( "attr1", "value1" );
-        attrs0.put( "attr2", "value2" );
-        attrs0.put( "attr2", "value3" );
-
-        ByteArrayOutputStream buf1 = new ByteArrayOutputStream();
-        ObjectOutputStream oos1 = new ObjectOutputStream( buf1 );
-        oos1.writeObject( attrs0 );
-
-        ObjectInputStream ois1 = new ObjectInputStream(
-            new ByteArrayInputStream( buf1.toByteArray() ) );
-
-        LockableAttributesImpl attrs1 = (LockableAttributesImpl)ois1.readObject();
-        System.out.println( "Attributes: " + attrs1 );
-    }*/
 }