directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1065418 - /directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncDoneValueControlTest.java
Date Sun, 30 Jan 2011 23:08:13 GMT
Author: elecharny
Date: Sun Jan 30 23:08:12 2011
New Revision: 1065418

URL: http://svn.apache.org/viewvc?rev=1065418&view=rev
Log:
Some cleanup

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

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncDoneValueControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncDoneValueControlTest.java?rev=1065418&r1=1065417&r2=1065418&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncDoneValueControlTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/controls/replication/SyncDoneValueControlTest.java
Sun Jan 30 23:08:12 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.syncDoneValue.ISyncDoneValue;
-import org.apache.directory.shared.ldap.codec.controls.replication.syncDoneValue.SyncDoneValueContainer;
 import org.apache.directory.shared.ldap.codec.controls.replication.syncDoneValue.SyncDoneValueDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
@@ -68,8 +67,7 @@ public class SyncDoneValueControlTest
 
         bb.flip();
 
-        SyncDoneValueContainer container = new SyncDoneValueContainer( codec );
-        SyncDoneValueDecorator decorator = container.getSyncDoneValueControl();
+        SyncDoneValueDecorator decorator =  new SyncDoneValueDecorator( codec );
 
         ISyncDoneValue control = (ISyncDoneValue)decorator.decode( bb.array() );
         
@@ -121,8 +119,7 @@ public class SyncDoneValueControlTest
 
         bb.flip();
 
-        SyncDoneValueContainer container = new SyncDoneValueContainer( codec );
-        SyncDoneValueDecorator decorator = container.getSyncDoneValueControl();
+        SyncDoneValueDecorator decorator =  new SyncDoneValueDecorator( codec );
 
         ISyncDoneValue control = (ISyncDoneValue)decorator.decode( bb.array() );
 
@@ -171,8 +168,7 @@ public class SyncDoneValueControlTest
 
         bb.flip();
 
-        SyncDoneValueContainer container = new SyncDoneValueContainer( codec );
-        SyncDoneValueDecorator decorator = container.getSyncDoneValueControl();
+        SyncDoneValueDecorator decorator =  new SyncDoneValueDecorator( codec );
 
         ISyncDoneValue control = (ISyncDoneValue)decorator.decode( bb.array() );
 
@@ -195,8 +191,7 @@ public class SyncDoneValueControlTest
 
         bb.flip();
 
-        SyncDoneValueContainer container = new SyncDoneValueContainer( codec );
-        SyncDoneValueDecorator decorator = container.getSyncDoneValueControl();
+        SyncDoneValueDecorator decorator =  new SyncDoneValueDecorator( codec );
 
         ISyncDoneValue control = (ISyncDoneValue)decorator.decode( bb.array() );
 
@@ -230,5 +225,4 @@ public class SyncDoneValueControlTest
             fail( e.getMessage() );
         }
     }
-
 }



Mime
View raw message