directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1065419 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncModifyDnControlTest.java
Date Sun, 30 Jan 2011 23:11:30 GMT
Author: akarasulu
Date: Sun Jan 30 23:11:29 2011
New Revision: 1065419

URL: http://svn.apache.org/viewvc?rev=1065419&view=rev
Log:
modified to pass tests

Modified:
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncModifyDnControlTest.java

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncModifyDnControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncModifyDnControlTest.java?rev=1065419&r1=1065418&r2=1065419&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncModifyDnControlTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncModifyDnControlTest.java
Sun Jan 30 23:11:29 2011
@@ -34,7 +34,6 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.ldap.codec.DefaultLdapCodecService;
 import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.codec.controls.replication.syncmodifydn.ISyncModifyDn;
-import org.apache.directory.shared.ldap.codec.controls.replication.syncmodifydn.SyncModifyDnContainer;
 import org.apache.directory.shared.ldap.codec.controls.replication.syncmodifydn.SyncModifyDnDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
@@ -66,9 +65,7 @@ public class SyncModifyDnControlTest
             } );
         bb.flip();
 
-        SyncModifyDnContainer container = new SyncModifyDnContainer( codec );
-        SyncModifyDnDecorator decorator = container.getSyncModifyDnControl();
-
+        SyncModifyDnDecorator decorator = new SyncModifyDnDecorator( codec );
         ISyncModifyDn syncmodDnControl = (ISyncModifyDn)decorator.decode( bb.array() );
 
         assertEquals( "uid=jim", syncmodDnControl.getEntryDn() );
@@ -119,9 +116,8 @@ public class SyncModifyDnControlTest
             } );
         bb.flip();
 
-        SyncModifyDnContainer container = new SyncModifyDnContainer( codec );
-        SyncModifyDnDecorator decorator = container.getSyncModifyDnControl();
-
+        SyncModifyDnDecorator decorator = new SyncModifyDnDecorator( codec );
+        
         ISyncModifyDn syncmodDnControl = (ISyncModifyDn)decorator.decode( bb.array() );
 
         assertEquals( "uid=jim", syncmodDnControl.getEntryDn() );
@@ -174,9 +170,7 @@ public class SyncModifyDnControlTest
             } );
         bb.flip();
 
-        SyncModifyDnContainer container = new SyncModifyDnContainer( codec );
-        SyncModifyDnDecorator decorator = container.getSyncModifyDnControl();
-
+        SyncModifyDnDecorator decorator = new SyncModifyDnDecorator( codec );
         ISyncModifyDn syncmodDnControl = (ISyncModifyDn)decorator.decode( bb.array() );
 
         assertEquals( "uid=jim", syncmodDnControl.getEntryDn() );
@@ -228,8 +222,7 @@ public class SyncModifyDnControlTest
             } );
         bb.flip();
 
-        SyncModifyDnContainer container = new SyncModifyDnContainer( codec );
-        SyncModifyDnDecorator decorator = container.getSyncModifyDnControl();
+        SyncModifyDnDecorator decorator = new SyncModifyDnDecorator( codec );
         decorator.decode( bb.array() );
     }
 }



Mime
View raw message