directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r329618 - in /directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder: add/AddRequestTest.java search/SearchResponseEntryTest.java
Date Sun, 30 Oct 2005 19:59:13 GMT
Author: elecharny
Date: Sun Oct 30 11:59:08 2005
New Revision: 329618

URL: http://svn.apache.org/viewcvs?rev=329618&view=rev
Log:
Rollbacked the tests, the attributes are now supposed to be String instead of byte[]

Modified:
    directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/add/AddRequestTest.java
    directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/search/SearchResponseEntryTest.java

Modified: directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/add/AddRequestTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/add/AddRequestTest.java?rev=329618&r1=329617&r2=329618&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/add/AddRequestTest.java
(original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/add/AddRequestTest.java
Sun Oct 30 11:59:08 2005
@@ -59,20 +59,20 @@
             {
                 assertEquals( 2, attr.size() );
                 
-                if ( StringUtils.toUtf8( (byte[])attr.get(0) ).equals( "top" ) )
+                if ( attr.get(0).equals( "top" ) )
                     {
-                    assertEquals( "dcObject", StringUtils.toUtf8( (byte[])attr.get(1) ) );
+                    assertEquals( "dcObject", attr.get(1) );
                     }
                 else
                 {
-                    assertEquals( "dcObject", StringUtils.toUtf8( (byte[])attr.get(0) ) );
-                    assertEquals("top", StringUtils.toUtf8( (byte[])attr.get(0) ) );
+                    assertEquals( "dcObject", attr.get(0) );
+                    assertEquals("top", attr.get(0) );
                 }
             }
             else if ( attr.getID().equals( "dc" ) ) 
             {
                 assertEquals( 1, attr.size() );
-                assertEquals( "dc=example", StringUtils.toUtf8( (byte[])attr.get() ) );
+                assertEquals( "dc=example", attr.get() );
             }
             else
             {

Modified: directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/search/SearchResponseEntryTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/search/SearchResponseEntryTest.java?rev=329618&r1=329617&r2=329618&view=diff
==============================================================================
--- directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/search/SearchResponseEntryTest.java
(original)
+++ directory/shared/ldap/branches/shared-ldap-utf8/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/search/SearchResponseEntryTest.java
Sun Oct 30 11:59:08 2005
@@ -58,20 +58,20 @@
             {
                 assertEquals( 2, attr.size() );
                 
-                if ( StringUtils.toUtf8( (byte[])attr.get(0) ).equals( "top" ) )
+                if ( attr.get(0).equals( "top" ) )
                     {
-                    assertEquals( "dcObject", StringUtils.toUtf8( (byte[])attr.get(1) ) );
+                    assertEquals( "dcObject", attr.get(1) );
                     }
                 else
                 {
-                    assertEquals( "dcObject", StringUtils.toUtf8( (byte[])attr.get(0) ) );
-                    assertEquals("top", StringUtils.toUtf8( (byte[])attr.get(0) ) );
+                    assertEquals( "dcObject", attr.get(0) );
+                    assertEquals("top", attr.get(0) );
                 }
             }
             else if ( attr.getID().equals( "dc" ) ) 
             {
                 assertEquals( 1, attr.size() );
-                assertEquals( "dc=example", StringUtils.toUtf8( (byte[])attr.get() ) );
+                assertEquals( "dc=example", attr.get() );
             }
             else
             {



Mime
View raw message