directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r267376 - /directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/message/CompareRequestImplTest.java
Date Sat, 03 Sep 2005 01:21:10 GMT
Author: elecharny
Date: Fri Sep  2 18:21:07 2005
New Revision: 267376

URL: http://svn.apache.org/viewcvs?rev=267376&view=rev
Log:
As we must store byte[] instead on String in attribute values, changed the code accordingly

Modified:
    directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/message/CompareRequestImplTest.java

Modified: directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/message/CompareRequestImplTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/message/CompareRequestImplTest.java?rev=267376&r1=267375&r2=267376&view=diff
==============================================================================
--- directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/message/CompareRequestImplTest.java
(original)
+++ directory/shared/ldap/branches/new-codec-integration/common/src/test/org/apache/ldap/common/message/CompareRequestImplTest.java
Fri Sep  2 18:21:07 2005
@@ -52,12 +52,12 @@
         CompareRequestImpl req0 = new CompareRequestImpl( 5 );
         req0.setName( "cn=admin,dc=example,dc=com" );
         req0.setAttributeId( "objectClass" );
-        req0.setAssertionValue( "top" );
+        req0.setAssertionValue( "top".getBytes() );
 
         CompareRequestImpl req1 = new CompareRequestImpl( 5 );
         req1.setName( "cn=admin,dc=example,dc=com" );
         req1.setAttributeId( "objectClass" );
-        req1.setAssertionValue( "top" );
+        req1.setAssertionValue( "top".getBytes() );
 
         assertTrue( req0.equals( req1 ) );
         assertTrue( req1.equals( req0 ) );
@@ -88,12 +88,12 @@
         CompareRequestImpl req0 = new CompareRequestImpl( 5 );
         req0.setName( "cn=admin,dc=apache,dc=org" );
         req0.setAttributeId( "dc" );
-        req0.setAssertionValue( "apache.org" );
+        req0.setAssertionValue( "apache.org".getBytes() );
 
         CompareRequestImpl req1 = new CompareRequestImpl( 5 );
         req1.setName( "cn=admin,dc=apache,dc=org" );
         req1.setAttributeId( "nisDomain" );
-        req1.setAssertionValue( "apache.org" );
+        req1.setAssertionValue( "apache.org".getBytes() );
 
         assertFalse( req0.equals( req1 ) );
         assertFalse( req1.equals( req0 ) );
@@ -108,12 +108,12 @@
         CompareRequestImpl req0 = new CompareRequestImpl( 5 );
         req0.setName( "cn=admin,dc=apache,dc=org" );
         req0.setAttributeId( "dc" );
-        req0.setAssertionValue( "apache.org" );
+        req0.setAssertionValue( "apache.org".getBytes() );
 
         CompareRequestImpl req1 = new CompareRequestImpl( 5 );
         req1.setName( "cn=admin,dc=apache,dc=org" );
         req1.setAttributeId( "dc" );
-        req1.setAssertionValue( "nagoya.apache.org" );
+        req1.setAssertionValue( "nagoya.apache.org".getBytes() );
 
         assertFalse( req0.equals( req1 ) );
         assertFalse( req1.equals( req0 ) );
@@ -127,12 +127,12 @@
     {
         CompareRequest req0 = new CompareRequest()
         {
-            public String getAssertionValue()
+            public byte[] getAssertionValue()
             {
                 return null;
             }
 
-            public void setAssertionValue( String a_value )
+            public void setAssertionValue( byte[] a_value )
             {
 
             }



Mime
View raw message