directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r359146 [2/2] - in /directory/shared/ldap/branches/DN-refactoring/apache2-provider/src: main/java/org/apache/asn1new/ldap/ main/java/org/apache/asn1new/ldap/codec/ main/java/org/apache/asn1new/ldap/codec/grammar/ main/java/org/apache/asn1ne...
Date Tue, 27 Dec 2005 00:34:25 GMT
Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindRequestTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.SaslCredentials;
 import org.apache.asn1new.ldap.pojo.SimpleAuthentication;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -60,7 +60,7 @@
 				'p', 'a', 's', 's', 'w', 'o', 'r', 'd'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -85,7 +85,7 @@
         Assert.assertEquals( 3, br.getVersion() );
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
         Assert.assertEquals( true, ( br.getAuthentication() instanceof SimpleAuthentication ) );
-        Assert.assertEquals( "password", StringUtils.utf8ToString( ( ( SimpleAuthentication ) br.getAuthentication() ).getSimple() ) );
+        Assert.assertEquals( "password", StringTools.utf8ToString( ( ( SimpleAuthentication ) br.getAuthentication() ).getSimple() ) );
 
         // Check the length
         Assert.assertEquals(0x35, message.computeLength());
@@ -95,7 +95,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -172,7 +172,7 @@
 				'p', 'a', 's', 's', 'w', 'o', 'r', 'd'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
 
         stream.flip();
 
@@ -198,7 +198,7 @@
         Assert.assertEquals( 3, br.getVersion() );
         Assert.assertEquals( "", br.getName() );
         Assert.assertEquals( true, ( br.getAuthentication() instanceof SimpleAuthentication ) );
-        Assert.assertEquals( "password", StringUtils.utf8ToString( ( (SimpleAuthentication)br.getAuthentication() ).getSimple() ) );
+        Assert.assertEquals( "password", StringTools.utf8ToString( ( (SimpleAuthentication)br.getAuthentication() ).getSimple() ) );
 
         // Check the length
         Assert.assertEquals(0x16, message.computeLength());
@@ -208,7 +208,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -247,7 +247,7 @@
 				'K', 'E', 'R', 'B', 'E', 'R', 'O', 'S', '_', 'V', '4'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -282,7 +282,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -326,7 +326,7 @@
 				'a', 'b', 'c', 'd', 'e', 'f'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -352,7 +352,7 @@
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
         Assert.assertEquals( true, ( br.getAuthentication() instanceof SaslCredentials ) );
         Assert.assertEquals( "KERBEROS_V4", ( ( SaslCredentials ) br.getAuthentication() ).getMechanism() );
-        Assert.assertEquals( "abcdef", StringUtils.utf8ToString( ( ( SaslCredentials ) br.getAuthentication() ).getCredentials() ) );
+        Assert.assertEquals( "abcdef", StringTools.utf8ToString( ( ( SaslCredentials ) br.getAuthentication() ).getCredentials() ) );
 
         // Check the length
         Assert.assertEquals(0x40, message.computeLength());
@@ -362,7 +362,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindResponseTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindResponseTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/BindResponseTest.java Mon Dec 26 16:33:37 2005
@@ -24,7 +24,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.BindResponse;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -60,7 +60,7 @@
 									// serverSaslCreds [7] OCTET STRING OPTIONAL }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -94,7 +94,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -132,7 +132,7 @@
 				(byte)0x87, 0x02, 'A', 'B' // serverSaslCreds [7] OCTET STRING OPTIONAL }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -157,7 +157,7 @@
         Assert.assertEquals( 0, br.getLdapResult().getResultCode() );
         Assert.assertEquals( "", br.getLdapResult().getMatchedDN() );
         Assert.assertEquals( "", br.getLdapResult().getErrorMessage() );
-        Assert.assertEquals( "AB", StringUtils.utf8ToString( br.getServerSaslCreds() ) );
+        Assert.assertEquals( "AB", StringTools.utf8ToString( br.getServerSaslCreds() ) );
 
         // Check the length
         Assert.assertEquals(0x12, message.computeLength());
@@ -167,7 +167,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareRequestTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.CompareRequest;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -64,7 +64,7 @@
 				0x04, 0x05, 'v', 'a', 'l', 'u', 'e'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -98,7 +98,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareResponseTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareResponseTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/CompareResponseTest.java Mon Dec 26 16:33:37 2005
@@ -24,7 +24,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.CompareResponse;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -61,7 +61,7 @@
 									// }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -95,7 +95,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelRequestTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.DelRequest;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -58,7 +58,7 @@
 				0x4A, 0x20, 'c', 'n', '=', 't', 'e', 's', 't', 'M', 'o', 'd', 'i', 'f', 'y', ',', 'o', 'u', '=', 'u', 's', 'e', 'r', 's', ',', 'o', 'u', '=', 's', 'y', 's', 't', 'e', 'm'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -90,7 +90,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelResponseTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelResponseTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/DelResponseTest.java Mon Dec 26 16:33:37 2005
@@ -24,7 +24,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.DelResponse;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -63,7 +63,7 @@
 									// }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -97,7 +97,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedRequestTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.ExtendedRequest;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -59,7 +59,7 @@
 				(byte)0x81, 0x05, 'v', 'a', 'l', 'u', 'e'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -82,7 +82,7 @@
 
         Assert.assertEquals( 1, message.getMessageId() );
         Assert.assertEquals( "1.3.6.1.5.5.2", extendedRequest.getRequestName() );
-        Assert.assertEquals( "value", StringUtils.utf8ToString( extendedRequest.getRequestValue() ) );
+        Assert.assertEquals( "value", StringTools.utf8ToString( extendedRequest.getRequestValue() ) );
         
         // Check the length
         Assert.assertEquals(0x16, message.computeLength());
@@ -92,7 +92,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -123,7 +123,7 @@
 				(byte)0x80, 0x06, 0x2b, 0x06, 0x01, 0x05, 0x05, 0x02,
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -155,7 +155,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedResponseTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedResponseTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ExtendedResponseTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.ExtendedResponse;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -67,7 +67,7 @@
 				(byte)0x8B, 0x05, 'v', 'a', 'l', 'u', 'e'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -93,7 +93,7 @@
         Assert.assertEquals( "", extendedResponse.getLdapResult().getMatchedDN() );
         Assert.assertEquals( "", extendedResponse.getLdapResult().getErrorMessage() );
         Assert.assertEquals( "1.3.6.1.5.5.2", extendedResponse.getResponseName() );
-        Assert.assertEquals( "value", StringUtils.utf8ToString( (byte[])extendedResponse.getResponse() ) );
+        Assert.assertEquals( "value", StringTools.utf8ToString( (byte[])extendedResponse.getResponse() ) );
         
         // Check the length
         Assert.assertEquals(0x1D, message.computeLength());
@@ -103,7 +103,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -140,7 +140,7 @@
     				                    //		referral     [3] Referral OPTIONAL }				                    //     requestName      [0] LDAPOID,
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -174,7 +174,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/LdapDecoderTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ldap.pojo.BindRequest;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.SimpleAuthentication;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import java.nio.ByteBuffer;
 
@@ -91,7 +91,7 @@
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
         Assert.assertEquals( true, ( br.getAuthentication() instanceof SimpleAuthentication ) );
         Assert.assertEquals( "password",
-            StringUtils.utf8ToString( ( ( SimpleAuthentication ) br.getAuthentication() ).getSimple() ) );
+            StringTools.utf8ToString( ( ( SimpleAuthentication ) br.getAuthentication() ).getSimple() ) );
     }
 
     /**
@@ -217,7 +217,7 @@
         Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", br.getName() );
         Assert.assertEquals( true, ( br.getAuthentication() instanceof SimpleAuthentication ) );
         Assert.assertEquals( "password",
-            StringUtils.utf8ToString( ( ( SimpleAuthentication ) br.getAuthentication() ).getSimple() ) );
+            StringTools.utf8ToString( ( ( SimpleAuthentication ) br.getAuthentication() ).getSimple() ) );
     }
 
     /**

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNRequestTest.java Mon Dec 26 16:33:37 2005
@@ -26,7 +26,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.ModifyDNRequest;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -64,7 +64,7 @@
                 (byte)0x80, 0x09, 'o', 'u', '=', 's', 'y', 's', 't', 'e', 'm'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a ModifyRequest Container
@@ -97,7 +97,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -134,7 +134,7 @@
                                     // newSuperior     [0] LDAPDN OPTIONAL }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a ModifyRequest Container
@@ -166,7 +166,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNResponseTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNResponseTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyDNResponseTest.java Mon Dec 26 16:33:37 2005
@@ -24,7 +24,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.ModifyDNResponse;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -61,7 +61,7 @@
 									// }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -95,7 +95,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyRequestTest.java Mon Dec 26 16:33:37 2005
@@ -32,7 +32,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.ModifyRequest;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -87,7 +87,7 @@
                 0x04, 0x04, 't', 'e', 's', 't'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -148,7 +148,7 @@
             }
             else
             {
-                Assert.assertTrue( vals.contains( StringUtils.utf8ToString( (byte[])value ) ) );
+                Assert.assertTrue( vals.contains( StringTools.utf8ToString( (byte[])value ) ) );
             }
             
             vals.remove( value.toString() );
@@ -162,7 +162,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -282,7 +282,7 @@
             }
             else
             {
-                Assert.assertTrue( vals.contains( StringUtils.utf8ToString( (byte[])value ) ) );
+                Assert.assertTrue( vals.contains( StringTools.utf8ToString( (byte[])value ) ) );
             }
             
             vals.remove( value.toString() );
@@ -295,7 +295,7 @@
         try
         {
             ByteBuffer bb = message.encode( null );
-            String decodedPdu1 = StringUtils.dumpBytes( bb.array() );
+            String decodedPdu1 = StringTools.dumpBytes( bb.array() );
             
             try
             {
@@ -311,7 +311,7 @@
             
             
             ByteBuffer bb2 = message2.encode( null );
-            String decodedPdu2 = StringUtils.dumpBytes( bb2.array() );
+            String decodedPdu2 = StringTools.dumpBytes( bb2.array() );
 
             Assert.assertEquals( decodedPdu1, decodedPdu2 );
         }
@@ -435,7 +435,7 @@
             }
             else
             {
-                Assert.assertTrue( vals.contains( StringUtils.utf8ToString( (byte[])value ) ) );
+                Assert.assertTrue( vals.contains( StringTools.utf8ToString( (byte[])value ) ) );
             }
             
             vals.remove( value.toString() );
@@ -448,7 +448,7 @@
         try
         {
             ByteBuffer bb = message.encode( null );
-            String decodedPdu1 = StringUtils.dumpBytes( bb.array() );
+            String decodedPdu1 = StringTools.dumpBytes( bb.array() );
             
             try
             {
@@ -464,7 +464,7 @@
             
             
             ByteBuffer bb2 = message2.encode( null );
-            String decodedPdu2 = StringUtils.dumpBytes( bb2.array() );
+            String decodedPdu2 = StringTools.dumpBytes( bb2.array() );
 
             Assert.assertEquals( decodedPdu1, decodedPdu2 );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyResponseTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyResponseTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyResponseTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/ModifyResponseTest.java Mon Dec 26 16:33:37 2005
@@ -24,7 +24,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.ModifyResponse;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -61,7 +61,7 @@
 									// }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a LdapMessage Container
@@ -95,7 +95,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchRequestTest.java Mon Dec 26 16:33:37 2005
@@ -35,8 +35,8 @@
 import org.apache.asn1new.ldap.pojo.filters.OrFilter;
 import org.apache.asn1new.ldap.pojo.filters.PresentFilter;
 import org.apache.asn1new.ldap.pojo.filters.SubstringFilter;
-import org.apache.asn1.codec.util.StringUtils;
 import org.apache.ldap.common.LdapString;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -110,7 +110,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -198,7 +198,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x81 ), decodedPdu.substring( 0, 0x81 ) );
         }
@@ -273,7 +273,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -365,7 +365,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x81 ), decodedPdu.substring( 0, 0x81 ) );
         }
@@ -435,7 +435,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -520,7 +520,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x6C ), decodedPdu.substring( 0, 0x6C ) );
         }
@@ -576,7 +576,7 @@
                 0x00, 0x00
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -621,7 +621,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu.substring( 0, decodedPdu.length() - 35) );
         }
@@ -681,7 +681,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -733,7 +733,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x53 ), decodedPdu.substring( 0, 0x53 ) );
         }
@@ -793,7 +793,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -847,7 +847,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x53 ), decodedPdu.substring( 0, 0x53 ) );
         }
@@ -908,7 +908,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -962,7 +962,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x58 ), decodedPdu.substring( 0, 0x58 ) );
         }
@@ -1024,7 +1024,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1078,7 +1078,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x5B ), decodedPdu.substring( 0, 0x5B ) );
         }
@@ -1139,7 +1139,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1192,7 +1192,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x58 ), decodedPdu.substring( 0, 0x58 ) );
         }
@@ -1254,7 +1254,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1309,7 +1309,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x5B ), decodedPdu.substring( 0, 0x5B ) );
         }
@@ -1370,7 +1370,7 @@
                 0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1423,7 +1423,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x58 ), decodedPdu.substring( 0, 0x58 ) );
         }
@@ -1485,7 +1485,7 @@
                       0x04, 0x05, 'a', 't', 't', 'r', '2'  // AttributeDescription ::= LDAPString
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1541,7 +1541,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x5B ), decodedPdu.substring( 0, 0x5B ) );
         }
@@ -1594,7 +1594,7 @@
                 			0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x32	// attr2
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1673,7 +1673,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x87 ), decodedPdu.substring( 0, 0x87 ) );
         }
@@ -1718,7 +1718,7 @@
                 			0x04, 0x05, 0x61, 0x74, 0x74, 0x72, 0x32	// attr2
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -1763,7 +1763,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu.substring( 0, 0x56 ), decodedPdu.substring( 0, 0x56 ) );
         }
@@ -1815,7 +1815,7 @@
     
        ByteBuffer  stream      = ByteBuffer.allocate( asn1BER.length );
        stream.put( asn1BER );
-       String decodedPdu       = StringUtils.dumpBytes( stream.array() );
+       String decodedPdu       = StringTools.dumpBytes( stream.array() );
        stream.flip();
     
        IAsn1Container ldapMessageContainer = new LdapMessageContainer();
@@ -1861,7 +1861,7 @@
        try
        {
            ByteBuffer bb = message.encode( null );
-           String encodedPdu = StringUtils.dumpBytes( bb.array() );
+           String encodedPdu = StringTools.dumpBytes( bb.array() );
            Assert.assertEquals(encodedPdu, decodedPdu );
        }
        catch ( EncoderException ee )

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultDoneTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultDoneTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultDoneTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultDoneTest.java Mon Dec 26 16:33:37 2005
@@ -24,7 +24,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.SearchResultDone;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -62,7 +62,7 @@
 									// }
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -94,7 +94,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultEntryTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultEntryTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultEntryTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultEntryTest.java Mon Dec 26 16:33:37 2005
@@ -30,7 +30,7 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.SearchResultEntry;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -75,7 +75,7 @@
                 0x04, 0x12, 'o', 'r', 'g', 'a', 'n', 'i', 'z', 'a', 't', 'i', 'o', 'n', 'a', 'l', 'U', 'n', 'i', 't'
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -132,7 +132,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }
@@ -288,7 +288,7 @@
                   0x02, 0x01, 0x02  // messageID MessageID ...
             } );
                 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -354,7 +354,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             // We have to supress the last 5 chars from the decodedPDU, as they
             // belongs to the next message.

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultReferenceTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultReferenceTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultReferenceTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/SearchResultReferenceTest.java Mon Dec 26 16:33:37 2005
@@ -28,9 +28,9 @@
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
 import org.apache.asn1new.ldap.pojo.SearchResultReference;
-import org.apache.asn1.codec.util.StringUtils;
 import org.apache.ldap.common.url.LdapURL;
 import org.apache.ldap.common.url.LdapURLEncodingException;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -100,7 +100,7 @@
             }
         }
         
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -159,7 +159,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/UnBindRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/UnBindRequestTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/UnBindRequestTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/UnBindRequestTest.java Mon Dec 26 16:33:37 2005
@@ -23,7 +23,7 @@
 import org.apache.asn1new.ber.Asn1Decoder;
 import org.apache.asn1new.ber.containers.IAsn1Container;
 import org.apache.asn1new.ldap.pojo.LdapMessage;
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -49,7 +49,7 @@
 									// UnbindRequest ::= [APPLICATION 2] NULL
             } );
 
-        String decodedPdu = StringUtils.dumpBytes( stream.array() );
+        String decodedPdu = StringTools.dumpBytes( stream.array() );
         stream.flip();
 
         // Allocate a BindRequest Container
@@ -76,7 +76,7 @@
         {
             ByteBuffer bb = message.encode( null );
             
-            String encodedPdu = StringUtils.dumpBytes( bb.array() ); 
+            String encodedPdu = StringTools.dumpBytes( bb.array() ); 
             
             Assert.assertEquals(encodedPdu, decodedPdu );
         }

Modified: directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/utils/DNUtilsTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/utils/DNUtilsTest.java?rev=359146&r1=359145&r2=359146&view=diff
==============================================================================
--- directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/utils/DNUtilsTest.java (original)
+++ directory/shared/ldap/branches/DN-refactoring/apache2-provider/src/test/org/apache/asn1new/ldap/codec/utils/DNUtilsTest.java Mon Dec 26 16:33:37 2005
@@ -16,7 +16,7 @@
  */
 package org.apache.asn1new.ldap.codec.utils;
 
-import org.apache.asn1.codec.util.StringUtils;
+import org.apache.ldap.common.util.StringTools;
 
 import junit.framework.Assert;
 import junit.framework.TestCase;
@@ -36,7 +36,7 @@
     public void testAreEqualsFull()
     {
         // Full compare
-        Assert.assertEquals( 6, StringUtils.areEquals( "azerty".getBytes(), 0, "azerty" ) );
+        Assert.assertEquals( 6, StringTools.areEquals( "azerty".getBytes(), 0, "azerty" ) );
     }
 
     /**
@@ -45,7 +45,7 @@
     public void testAreEqualsDiff()
     {
         // First character is !=
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "Azerty" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "Azerty" ) );
     }
 
     /**
@@ -54,7 +54,7 @@
     public void testAreEqualsEmpty()
     {
         // Compare to an empty string
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "" ) );
     }
 
     /**
@@ -63,7 +63,7 @@
     public void testAreEqualsFirstCharDiff()
     {
         // First character is !=
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "Azerty" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "Azerty" ) );
     }
     
     /**
@@ -72,7 +72,7 @@
     public void testAreEqualsMiddleCharDiff()
     {
         // First character is !=
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "azeRty" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "azeRty" ) );
     }
     
     /**
@@ -81,7 +81,7 @@
     public void testAreEqualsLastCharDiff()
     {
         // First character is !=
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "azertY" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "azertY" ) );
     }
     
     /**
@@ -90,12 +90,12 @@
     public void testAreEqualsCharByChar()
     {
         // Index must be incremented after each comparison
-        Assert.assertEquals( 1, StringUtils.areEquals( "azerty".getBytes(), 0, "a" ) );
-        Assert.assertEquals( 2, StringUtils.areEquals( "azerty".getBytes(), 1, "z" ) );
-        Assert.assertEquals( 3, StringUtils.areEquals( "azerty".getBytes(), 2, "e" ) );
-        Assert.assertEquals( 4, StringUtils.areEquals( "azerty".getBytes(), 3, "r" ) );
-        Assert.assertEquals( 5, StringUtils.areEquals( "azerty".getBytes(), 4, "t" ) );
-        Assert.assertEquals( 6, StringUtils.areEquals( "azerty".getBytes(), 5, "y" ) );
+        Assert.assertEquals( 1, StringTools.areEquals( "azerty".getBytes(), 0, "a" ) );
+        Assert.assertEquals( 2, StringTools.areEquals( "azerty".getBytes(), 1, "z" ) );
+        Assert.assertEquals( 3, StringTools.areEquals( "azerty".getBytes(), 2, "e" ) );
+        Assert.assertEquals( 4, StringTools.areEquals( "azerty".getBytes(), 3, "r" ) );
+        Assert.assertEquals( 5, StringTools.areEquals( "azerty".getBytes(), 4, "t" ) );
+        Assert.assertEquals( 6, StringTools.areEquals( "azerty".getBytes(), 5, "y" ) );
     }
 
     /**
@@ -104,7 +104,7 @@
     public void testAreEqualsTooShort()
     {
         // length too short
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "azertyiop" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "azertyiop" ) );
     }
 
     /**
@@ -113,7 +113,7 @@
     public void testAreEqualsTooShortMiddle()
     {
         // length too short
-        Assert.assertEquals( -1, StringUtils.areEquals( "azerty".getBytes(), 0, "ertyiop" ) );
+        Assert.assertEquals( -1, StringTools.areEquals( "azerty".getBytes(), 0, "ertyiop" ) );
     }
 
     /**
@@ -122,7 +122,7 @@
     public void testAreEqualsLastChar()
     {
         // last character
-        Assert.assertEquals( 6, StringUtils.areEquals( "azerty".getBytes(), 5, "y" ) );
+        Assert.assertEquals( 6, StringTools.areEquals( "azerty".getBytes(), 5, "y" ) );
     }
 
     /**
@@ -131,6 +131,6 @@
     public void testAreEqualsMiddle()
     {
         // In the middle
-        Assert.assertEquals( 4, StringUtils.areEquals( "azerty".getBytes(), 2, "er" ) );
+        Assert.assertEquals( 4, StringTools.areEquals( "azerty".getBytes(), 2, "er" ) );
     }
 }



Mime
View raw message