directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1069215 [4/4] - in /directory: apacheds/branches/m1/core-api/src/main/java/org/apache/directory/server/core/ apacheds/branches/m1/core-integ/src/test/java/org/apache/directory/server/core/authn/ppolicy/ apacheds/branches/m1/core-integ/src/...
Date Thu, 10 Feb 2011 03:35:34 GMT
Modified: directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java (original)
+++ directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java Thu Feb 10 03:35:32 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *
+ *  
  *    http://www.apache.org/licenses/LICENSE-2.0
- *
+ *  
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License.
- *
+ *  under the License. 
+ *  
  */
 package org.apache.directory.shared.ldap.codec.search;
 
@@ -30,12 +30,16 @@ import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.EncoderException;
 import org.apache.directory.shared.asn1.ber.Asn1Decoder;
-import org.apache.directory.shared.ldap.codec.AbstractCodecServiceTest;
+import org.apache.directory.shared.ldap.codec.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.api.CodecControl;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
+import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.decorators.SearchResultReferenceDecorator;
 import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.message.Referral;
@@ -44,19 +48,23 @@ import org.apache.directory.shared.util.
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
-
 
 /**
  * Test the SearchResultReference codec
- *
+ * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class SearchResultReferenceTest extends AbstractCodecServiceTest
+public class SearchResultReferenceTest
 {
+    /** The encoder instance */
+    LdapEncoder encoder = new LdapEncoder();
+
+    /** The codec service */
+    LdapCodecService codec = new StandaloneLdapCodecService();
+
+
     /**
      * Test the decoding of a SearchResultReference
      */
@@ -290,7 +298,7 @@ public class SearchResultReferenceTest e
 
         CodecControl<Control> control = (org.apache.directory.shared.ldap.codec.api.CodecControl<Control> )controls.get( "2.16.840.1.113730.3.4.2" );
         assertEquals( "2.16.840.1.113730.3.4.2", control.getOid() );
-        assertEquals( "", Strings.dumpBytes(control.getValue()) );
+        assertEquals( "", Strings.dumpBytes((byte[]) control.getValue()) );
 
         // Check the encoding
         try

Modified: directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java (original)
+++ directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java Thu Feb 10 03:35:32 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *
+ *  
  *    http://www.apache.org/licenses/LICENSE-2.0
- *
+ *  
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License.
- *
+ *  under the License. 
+ *  
  */
 package org.apache.directory.shared.ldap.codec.search.controls;
 
@@ -25,8 +25,11 @@ import static org.junit.Assert.assertNul
 
 import java.nio.ByteBuffer;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.ldap.codec.AbstractCodecServiceTest;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
+import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.controls.search.entryChange.EntryChangeDecorator;
 import org.apache.directory.shared.ldap.model.message.controls.ChangeType;
 import org.apache.directory.shared.ldap.model.message.controls.EntryChange;
@@ -35,19 +38,18 @@ import org.apache.directory.shared.util.
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
-
 
 /**
  * Test the EntryChangeControlTest codec
- *
+ * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class EntryChangeControlTest extends AbstractCodecServiceTest
+public class EntryChangeControlTest
 {
+    private LdapCodecService codec = new StandaloneLdapCodecService();
+
     /**
      * Test the decoding of a EntryChangeControl
      */
@@ -56,7 +58,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0D );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x0B,                     // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x08,             //     changeType ENUMERATED {
                                             //         modDN (8)
@@ -67,7 +69,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         EntryChange entryChange = (EntryChange)decorator.decode( bb.array() );
 
         assertEquals( ChangeType.MODDN, entryChange.getChangeType() );
@@ -84,7 +86,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x13 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x11,                     // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x08,             //     changeType ENUMERATED {
                                             //         modDN (8)
@@ -96,7 +98,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         EntryChange entryChange = (EntryChange)decorator.decode( bb.array() );
 
         assertEquals( ChangeType.MODDN, entryChange.getChangeType() );
@@ -113,7 +115,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x06,             // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x01,     //     changeType ENUMERATED {
                                     //         Add (1)
@@ -124,7 +126,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         EntryChange entryChange = (EntryChange)decorator.decode( bb.array() );
 
         assertEquals( ChangeType.ADD, entryChange.getChangeType() );
@@ -142,7 +144,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0D );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x0B,                     // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x01,             //     changeType ENUMERATED {
                                             //         ADD (1)
@@ -155,7 +157,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
 
@@ -168,7 +170,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x03,                 // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x01,         //     changeType ENUMERATED {
                                         //         ADD (1)
@@ -178,7 +180,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         EntryChange entryChange = (EntryChange)decorator.decode( bb.array() );
 
         assertEquals( ChangeType.ADD, entryChange.getChangeType() );
@@ -196,7 +198,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x03,                 // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x03,         //     changeType ENUMERATED {
                                         //         BAD Change Type
@@ -206,7 +208,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
 
@@ -219,7 +221,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x1C );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x1A,                     // EntryChangeNotification ::= SEQUENCE {
               0x0A, 0x01, 0x08,             //     changeType ENUMERATED {
                                             //         modDN (8)
@@ -232,7 +234,7 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
 
@@ -245,7 +247,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0D );
         bb.put( new byte[]
-            {
+            { 
                 0x30, 0x0B,                        // EntryChangeNotification ::= SEQUENCE {
                   0x0A, 0x01, 0x08,                //     changeType ENUMERATED {
                                                    //         modDN (8)
@@ -259,7 +261,7 @@ public class EntryChangeControlTest exte
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
 
-        EntryChange entryChange = decorator.getDecorated();
+        EntryChange entryChange = (EntryChange) decorator.getDecorated();
         entryChange.setChangeType( ChangeType.MODDN );
         entryChange.setChangeNumber( 16 );
         entryChange.setPreviousDn( new Dn( "a=b" ) );
@@ -277,7 +279,7 @@ public class EntryChangeControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x13 );
         bb.put( new byte[]
-            {
+            { 
                 0x30, 0x11,                        // EntryChangeNotification ::= SEQUENCE {
                   0x0A, 0x01, 0x08,                //     changeType ENUMERATED {
                                                    //         modDN (8)
@@ -291,8 +293,8 @@ public class EntryChangeControlTest exte
         bb.flip();
 
         EntryChangeDecorator decorator = new EntryChangeDecorator( codec );
-
-        EntryChange entryChange = decorator.getDecorated();
+        
+        EntryChange entryChange = (EntryChange) decorator.getDecorated();
 
         entryChange.setChangeType( ChangeType.MODDN );
         entryChange.setChangeNumber( 5124095576030430L );

Modified: directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java (original)
+++ directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java Thu Feb 10 03:35:32 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *
+ *  
  *    http://www.apache.org/licenses/LICENSE-2.0
- *
+ *  
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License.
- *
+ *  under the License. 
+ *  
  */
 package org.apache.directory.shared.ldap.codec.search.controls;
 
@@ -25,8 +25,11 @@ import static org.junit.Assert.assertTru
 
 import java.nio.ByteBuffer;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.ldap.codec.AbstractCodecServiceTest;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
+import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.controls.search.persistentSearch.PersistentSearchDecorator;
 import org.apache.directory.shared.ldap.model.message.controls.ChangeType;
 import org.apache.directory.shared.ldap.model.message.controls.PersistentSearch;
@@ -34,19 +37,18 @@ import org.apache.directory.shared.util.
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
-
 
 /**
  * Test the PSearchControlTest codec
- *
+ * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class PSearchControlTest extends AbstractCodecServiceTest
+public class PSearchControlTest
 {
+    private LdapCodecService codec = new StandaloneLdapCodecService();
+
     /**
      * Test encoding of a PSearchControl.
      * @throws Exception on error
@@ -56,7 +58,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0B );
         bb.put( new byte[]
-            {
+            { 
                 0x30, 0x09,           // PersistentSearch ::= SEQUENCE {
                   0x02, 0x01, 0x01,   // changeTypes INTEGER,
                   0x01, 0x01, 0x00,   // changesOnly BOOLEAN,
@@ -67,7 +69,7 @@ public class PSearchControlTest extends 
         bb.flip();
 
         PersistentSearchDecorator decorator = new PersistentSearchDecorator( codec );
-        PersistentSearch ctrl = decorator.getDecorated();
+        PersistentSearch ctrl = ( PersistentSearch ) decorator.getDecorated();
         ctrl.setChangesOnly( false );
         ctrl.setReturnECs( false );
         ctrl.setChangeTypes( 1 );
@@ -84,7 +86,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x09,         // PersistentSearch ::= SEQUENCE {
               0x02, 0x01, 0x09, // changeTypes INTEGER,
               0x01, 0x01, 0x00, // changesOnly BOOLEAN,
@@ -103,7 +105,7 @@ public class PSearchControlTest extends 
         assertEquals( false, ctrl.isReturnECs() );
     }
 
-
+    
     /**
      * Test the decoding of a PSearchControl with a changes types which
      * value is 0
@@ -113,7 +115,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x09,         // PersistentSearch ::= SEQUENCE {
               0x02, 0x01, 0x00, // changeTypes INTEGER,
               0x01, 0x01, 0x00, // changesOnly BOOLEAN,
@@ -135,7 +137,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x09,         // PersistentSearch ::= SEQUENCE {
               0x02, 0x01, 0x22, // changeTypes INTEGER,
               0x01, 0x01, 0x00, // changesOnly BOOLEAN,
@@ -148,7 +150,7 @@ public class PSearchControlTest extends 
         decorator.decode( bb.array() );
     }
 
-
+    
     /**
      * Test the decoding of a PSearchControl with a null sequence
      */
@@ -157,7 +159,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x00,         // PersistentSearch ::= SEQUENCE {
             } );
         bb.flip();
@@ -167,7 +169,7 @@ public class PSearchControlTest extends 
         decorator.decode( bb.array() );
     }
 
-
+    
     /**
      * Test the decoding of a PSearchControl without changeTypes
      */
@@ -176,7 +178,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x06,         // PersistentSearch ::= SEQUENCE {
               0x01, 0x01, 0x00, // changesOnly BOOLEAN,
               0x01, 0x01, 0x00  // returnECs BOOLEAN
@@ -188,7 +190,7 @@ public class PSearchControlTest extends 
         decorator.decode( bb.array() );
     }
 
-
+    
     /**
      * Test the decoding of a PSearchControl without changeOnly
      */
@@ -197,7 +199,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x06,         // PersistentSearch ::= SEQUENCE {
               0x02, 0x01, 0x01, // changeTypes INTEGER,
               0x01, 0x01, 0x00  // returnECs BOOLEAN
@@ -209,7 +211,7 @@ public class PSearchControlTest extends 
         decorator.decode( bb.array() );
     }
 
-
+    
     /**
      * Test the decoding of a PSearchControl without returnECs
      */
@@ -218,7 +220,7 @@ public class PSearchControlTest extends 
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x06,         // PersistentSearch ::= SEQUENCE {
               0x02, 0x01, 0x01, // changeTypes INTEGER,
               0x01, 0x01, 0x00, // changesOnly BOOLEAN,

Modified: directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PagedSearchControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PagedSearchControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PagedSearchControlTest.java (original)
+++ directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PagedSearchControlTest.java Thu Feb 10 03:35:32 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *
+ *  
  *    http://www.apache.org/licenses/LICENSE-2.0
- *
+ *  
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License.
- *
+ *  under the License. 
+ *  
  */
 package org.apache.directory.shared.ldap.codec.search.controls;
 
@@ -27,27 +27,29 @@ import static org.junit.Assert.assertTru
 import java.nio.ByteBuffer;
 import java.util.Arrays;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.asn1.DecoderException;
-import org.apache.directory.shared.ldap.codec.AbstractCodecServiceTest;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
+import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.controls.search.pagedSearch.PagedResultsDecorator;
 import org.apache.directory.shared.ldap.model.message.controls.PagedResults;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
-
 
 /**
  * Test the PagedSearchControlTest codec
- *
+ * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class PagedSearchControlTest extends AbstractCodecServiceTest
+public class PagedSearchControlTest
 {
+    private LdapCodecService codec = new StandaloneLdapCodecService();
+
     /**
      * Test encoding of a PagedSearchControl.
      */
@@ -56,7 +58,7 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0B );
         bb.put( new byte[]
-            {
+            { 
                 0x30, 0x09,                        // realSearchControlValue ::= SEQUENCE {
                   0x02, 0x01, 0x20,                // size INTEGER,
                   0x04, 0x04, 't', 'e', 's', 't'   // cookie OCTET STRING,
@@ -64,13 +66,13 @@ public class PagedSearchControlTest exte
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         PagedResults pagedSearch = (PagedResults)decorator.decode( bb.array() );
 
         assertEquals( 32, pagedSearch.getSize() );
         assertTrue( Arrays.equals( Strings.getBytesUtf8("test"),
             pagedSearch.getCookie() ) );
-
+            
         bb.flip();
 
         PagedResultsDecorator ctrl = new PagedResultsDecorator( codec );
@@ -82,8 +84,8 @@ public class PagedSearchControlTest exte
         String expected = Strings.dumpBytes( bb.array() );
         assertEquals( expected, decoded );
     }
-
-
+    
+    
     /**
      * Test the decoding of a PagedSearchControl with no cookie
      */
@@ -92,18 +94,18 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x05 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x03,         // realSearchControlValue ::= SEQUENCE {
               0x02, 0x01, 0x20  // size INTEGER,
             } );
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
-
-
+    
+    
     /**
      * Test the decoding of a PagedSearchControl with no size
      */
@@ -112,18 +114,18 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x08 );
         bb.put( new byte[]
-            {
+            { 
             0x30, 0x06,                       // realSearchControlValue ::= SEQUENCE {
               0x04, 0x04, 't', 'e', 's', 't'  // cookie OCTET STRING,
             } );
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
-
-
+    
+    
     /**
      * Test the decoding of a PagedSearchControl with no size  and no cookie
      */
@@ -132,17 +134,17 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
         bb.put( new byte[]
-            {
-            0x30, 0x00,         // realSearchControlValue ::= SEQUENCE
+            { 
+            0x30, 0x00,         // realSearchControlValue ::= SEQUENCE 
             } );
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
-
-
+    
+    
     /**
      * Test encoding of a PagedSearchControl with a negative size
      */
@@ -151,7 +153,7 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0b );
         bb.put( new byte[]
-            {
+            { 
               0x30, 0x09,                        // realSearchControlValue ::= SEQUENCE {
                 0x02, 0x01, (byte)0xFF,          // size INTEGER,
                 0x04, 0x04, 't', 'e', 's', 't'   // cookie OCTET STRING,
@@ -159,13 +161,13 @@ public class PagedSearchControlTest exte
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         PagedResults pagedSearch = (PagedResults)decorator.decode( bb.array() );
 
         assertEquals( Integer.MAX_VALUE, pagedSearch.getSize() );
         assertTrue( Arrays.equals( Strings.getBytesUtf8("test"),
             pagedSearch.getCookie() ) );
-
+            
         bb.flip();
 
 
@@ -178,8 +180,8 @@ public class PagedSearchControlTest exte
         String expected = Strings.dumpBytes( bb.array() );
         assertEquals( expected, decoded );
     }
-
-
+    
+    
     /**
      * Test encoding of a PagedSearchControl with a empty size
      */
@@ -188,7 +190,7 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x0a );
         bb.put( new byte[]
-            {
+            { 
               0x30, 0x08,                        // realSearchControlValue ::= SEQUENCE {
                 0x02, 0x00,                      // size INTEGER,
                 0x04, 0x04, 't', 'e', 's', 't'   // cookie OCTET STRING,
@@ -196,11 +198,11 @@ public class PagedSearchControlTest exte
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
-
-
+    
+    
     /**
      * Test encoding of a PagedSearchControl with a empty cookie
      */
@@ -209,7 +211,7 @@ public class PagedSearchControlTest exte
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x07 );
         bb.put( new byte[]
-            {
+            { 
               0x30, 0x05,           // realSearchControlValue ::= SEQUENCE {
                 0x02, 0x01, 0x20,   // size INTEGER,
                 0x04, 0x00          // cookie OCTET STRING,
@@ -217,12 +219,12 @@ public class PagedSearchControlTest exte
         bb.flip();
 
         PagedResultsDecorator decorator = new PagedResultsDecorator( codec );
-
+        
         PagedResults pagedSearch = (PagedResults)decorator.decode( bb.array() );
 
         assertEquals( 32, pagedSearch.getSize() );
         assertNull( pagedSearch.getCookie() );
-
+            
         PagedResultsDecorator ctrl = new PagedResultsDecorator( codec );
         ctrl.setSize( 32 );
         ctrl.setCookie( null );

Modified: directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java (original)
+++ directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java Thu Feb 10 03:35:32 2011
@@ -6,16 +6,16 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *
+ *  
  *    http://www.apache.org/licenses/LICENSE-2.0
- *
+ *  
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License.
- *
+ *  under the License. 
+ *  
  */
 package org.apache.directory.shared.ldap.codec.search.controls;
 
@@ -27,28 +27,30 @@ import static org.junit.Assert.fail;
 
 import java.nio.ByteBuffer;
 
+import com.mycila.junit.concurrent.Concurrency;
+import com.mycila.junit.concurrent.ConcurrentJunitRunner;
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.ldap.codec.AbstractCodecServiceTest;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
+import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.controls.search.subentries.SubentriesDecorator;
 import org.apache.directory.shared.ldap.model.message.controls.Subentries;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
 
-import com.mycila.junit.concurrent.Concurrency;
-import com.mycila.junit.concurrent.ConcurrentJunitRunner;
-
 
 /**
  * Test the SubEntryControlTest codec
- *
+ * 
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class SubEntryControlTest extends AbstractCodecServiceTest
+public class SubEntryControlTest
 {
+    private LdapCodecService codec = new StandaloneLdapCodecService();
+
     /**
      * Test the decoding of a SubEntryControl with a true visibility
      */
@@ -57,17 +59,17 @@ public class SubEntryControlTest extends
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x03 );
         bb.put( new byte[]
-            {
+            { 
               0x01, 0x01, ( byte ) 0xFF // Visibility ::= BOOLEAN
             } );
         bb.flip();
 
         SubentriesDecorator decorator = new SubentriesDecorator( codec );
-
+        
         Subentries subentries = (Subentries)decorator.decode( bb.array() );
 
         assertTrue( subentries.isVisible() );
-
+        
         // test encoding
         try
         {
@@ -91,17 +93,17 @@ public class SubEntryControlTest extends
     {
         ByteBuffer bb = ByteBuffer.allocate( 0x03 );
         bb.put( new byte[]
-            {
+            { 
               0x01, 0x01, 0x00 // Visibility ::= BOOLEAN
             } );
         bb.flip();
 
         SubentriesDecorator decorator = new SubentriesDecorator( codec );
-
+        
         Subentries subentries = (Subentries)decorator.decode( bb.array() );
 
         assertFalse( subentries.isVisible() );
-
+        
         // test encoding
         try
         {
@@ -126,7 +128,7 @@ public class SubEntryControlTest extends
         ByteBuffer bb = ByteBuffer.allocate( 0x02 );
 
         bb.put( new byte[]
-            {
+            { 
               0x01, 0x00 // Visibility ::= BOOLEAN
             } );
 
@@ -134,7 +136,7 @@ public class SubEntryControlTest extends
 
         // Allocate a LdapMessage Container
         SubentriesDecorator decorator = new SubentriesDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
 
@@ -148,7 +150,7 @@ public class SubEntryControlTest extends
         ByteBuffer bb = ByteBuffer.allocate( 0x03 );
 
         bb.put( new byte[]
-            {
+            { 
               0x02, 0x01, 0x01 // Visibility ::= BOOLEAN
             } );
 
@@ -156,7 +158,7 @@ public class SubEntryControlTest extends
 
         // Allocate a LdapMessage Container
         SubentriesDecorator decorator = new SubentriesDecorator( codec );
-
+        
         decorator.decode( bb.array() );
     }
 }

Modified: directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/unbind/UnBindRequestTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/unbind/UnBindRequestTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/unbind/UnBindRequestTest.java (original)
+++ directory/shared/branches/m1/ldap-codec/src/test/java/org/apache/directory/shared/ldap/codec/unbind/UnBindRequestTest.java Thu Feb 10 03:35:32 2011
@@ -35,7 +35,7 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.ldap.codec.LdapEncoder;
 import org.apache.directory.shared.ldap.codec.LdapMessageContainer;
 import org.apache.directory.shared.ldap.codec.api.CodecControl;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.codec.decorators.UnbindRequestDecorator;
 import org.apache.directory.shared.ldap.model.message.Control;
@@ -57,7 +57,7 @@ public class UnBindRequestTest
     private LdapEncoder encoder = new LdapEncoder();
 
     /** The codec service */
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
 
     /**
      * Test the decoding of a UnBindRequest with no controls

Modified: directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyTest.java (original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/ppolicy_impl/PasswordPolicyTest.java Thu Feb 10 03:35:32 2011
@@ -27,10 +27,9 @@ import static org.junit.Assert.assertTru
 
 import java.nio.ByteBuffer;
 
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.PasswordPolicy;
-import org.apache.directory.shared.ldap.extras.controls.ppolicy_impl.PasswordPolicyDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 
@@ -42,7 +41,7 @@ import org.junit.Test;
  */
 public class PasswordPolicyTest
 {
-    LdapCodecService codec = new DefaultLdapCodecService();
+    LdapCodecService codec = new StandaloneLdapCodecService();
     
     @Test
     public void testDecodeRespWithExpiryWarningAndError() throws Exception

Modified: directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncDoneValueControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncDoneValueControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncDoneValueControlTest.java (original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncDoneValueControlTest.java Thu Feb 10 03:35:32 2011
@@ -29,10 +29,9 @@ import static org.junit.Assert.fail;
 import java.nio.ByteBuffer;
 
 import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.SyncDoneValue;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -51,7 +50,7 @@ import com.mycila.junit.concurrent.Concu
 @Concurrency()
 public class SyncDoneValueControlTest
 {
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
 
     
     @Test

Modified: directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueControlTest.java (original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncInfoValueControlTest.java Thu Feb 10 03:35:32 2011
@@ -29,11 +29,10 @@ import java.nio.ByteBuffer;
 
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.SyncInfoValue;
 import org.apache.directory.shared.ldap.extras.controls.SynchronizationInfoEnum;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncInfoValueDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -51,7 +50,7 @@ import com.mycila.junit.concurrent.Concu
 @Concurrency()
 public class SyncInfoValueControlTest
 {
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
 
     //--------------------------------------------------------------------------------
     // NewCookie choice tests

Modified: directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncModifyDnControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncModifyDnControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncModifyDnControlTest.java (original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncModifyDnControlTest.java Thu Feb 10 03:35:32 2011
@@ -29,10 +29,9 @@ import java.nio.ByteBuffer;
 
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.SyncModifyDn;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncModifyDnDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -50,7 +49,7 @@ import com.mycila.junit.concurrent.Concu
 @Concurrency()
 public class SyncModifyDnControlTest
 {
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
     
     
     @Test

Modified: directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueControlTest.java (original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncRequestValueControlTest.java Thu Feb 10 03:35:32 2011
@@ -29,11 +29,10 @@ import java.nio.ByteBuffer;
 
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.SyncRequestValue;
 import org.apache.directory.shared.ldap.extras.controls.SynchronizationModeEnum;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncRequestValueDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -51,7 +50,7 @@ import com.mycila.junit.concurrent.Concu
 @Concurrency()
 public class SyncRequestValueControlTest
 {
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
     
     
     /**

Modified: directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java (original)
+++ directory/shared/branches/m1/ldap-extras/codec/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java Thu Feb 10 03:35:32 2011
@@ -28,11 +28,10 @@ import java.nio.ByteBuffer;
 
 import org.apache.directory.shared.asn1.DecoderException;
 import org.apache.directory.shared.asn1.EncoderException;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.SyncStateTypeEnum;
 import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -50,7 +49,7 @@ import com.mycila.junit.concurrent.Concu
 @Concurrency()
 public class SyncStateValueControlTest
 {
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
     
     /**
      * Test the decoding of a SyncStateValue control with a refreshOnly mode

Modified: directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java (original)
+++ directory/studio/branches/m1/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/CursorStudioNamingEnumeration.java Thu Feb 10 03:35:32 2011
@@ -35,7 +35,7 @@ import javax.naming.ldap.Control;
 import javax.naming.ldap.PagedResultsResponseControl;
 
 import org.apache.directory.shared.ldap.codec.api.CodecControl;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.model.cursor.SearchCursor;
 import org.apache.directory.shared.ldap.model.entry.AttributeUtils;
@@ -69,7 +69,7 @@ public class CursorStudioNamingEnumerati
     private SearchResultDone searchResultDone;
 
     // @TODO: By Alex: temporary fix until things are in order (needs to be fixed)
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
     
 
     /**

Modified: directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java (original)
+++ directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ExportDsmlRunnable.java Thu Feb 10 03:35:32 2011
@@ -42,7 +42,7 @@ import org.apache.directory.shared.dsmlv
 import org.apache.directory.shared.dsmlv2.reponse.SearchResultReferenceDsml;
 import org.apache.directory.shared.dsmlv2.request.AddRequestDsml;
 import org.apache.directory.shared.dsmlv2.request.BatchRequestDsml;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.model.entry.AttributeUtils;
 import org.apache.directory.shared.ldap.model.entry.Entry;
@@ -97,7 +97,7 @@ public class ExportDsmlRunnable implemen
      * @TODO - this should be removed - no reason why the DSML parser needs it
      * @TODO - hate to make it static like this but methods are static
      */
-    private static LdapCodecService codec = new DefaultLdapCodecService();
+    private static LdapCodecService codec = new StandaloneLdapCodecService();
     
 
     /**

Modified: directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java?rev=1069215&r1=1069214&r2=1069215&view=diff
==============================================================================
--- directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java (original)
+++ directory/studio/branches/m1/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/jobs/ImportDsmlRunnable.java Thu Feb 10 03:35:32 2011
@@ -51,7 +51,7 @@ import org.apache.directory.shared.dsmlv
 import org.apache.directory.shared.dsmlv2.reponse.ModifyResponseDsml;
 import org.apache.directory.shared.dsmlv2.request.BatchRequestDsml;
 import org.apache.directory.shared.dsmlv2.request.Dsmlv2Grammar;
-import org.apache.directory.shared.ldap.codec.api.DefaultLdapCodecService;
+import org.apache.directory.shared.ldap.codec.standalone.StandaloneLdapCodecService;
 import org.apache.directory.shared.ldap.codec.api.LdapCodecService;
 import org.apache.directory.shared.ldap.model.entry.*;
 import org.apache.directory.shared.ldap.model.message.*;
@@ -104,7 +104,7 @@ public class ImportDsmlRunnable implemen
      * LDAP Codec used by DSML parser
      * @TODO by Alex - this should be removed completely
      */
-    private LdapCodecService codec = new DefaultLdapCodecService();
+    private LdapCodecService codec = new StandaloneLdapCodecService();
 
 
     /**



Mime
View raw message