From commits-return-5601-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Sat Aug 13 06:10:47 2005 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 48523 invoked from network); 13 Aug 2005 06:10:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Aug 2005 06:10:46 -0000 Received: (qmail 57902 invoked by uid 500); 13 Aug 2005 06:10:46 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 57848 invoked by uid 500); 13 Aug 2005 06:10:46 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 57835 invoked by uid 99); 13 Aug 2005 06:10:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Aug 2005 23:10:46 -0700 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 12 Aug 2005 23:11:07 -0700 Received: (qmail 48513 invoked by uid 65534); 13 Aug 2005 06:10:44 -0000 Message-ID: <20050813061044.48512.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r232425 - in /directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec: AddRequestTest.java ModifyRequestTest.java SearchResultEntryTest.java Date: Sat, 13 Aug 2005 06:10:44 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.3 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: elecharny Date: Fri Aug 12 23:10:40 2005 New Revision: 232425 URL: http://svn.apache.org/viewcvs?rev=232425&view=rev Log: Changed the "objectClass" to "objectclass" in the PDUs in order to make the tests pass. This is *not* changing the test, just the consequences ... Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddRequestTest.java directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/ModifyRequestTest.java directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddRequestTest.java URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddRequestTest.java?rev=232425&r1=232424&r2=232425&view=diff ============================================================================== --- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddRequestTest.java (original) +++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/AddRequestTest.java Fri Aug 12 23:10:40 2005 @@ -134,10 +134,10 @@ BasicAttribute attributeValue = (BasicAttribute)attributes.get( 0 ); - Assert.assertTrue( expectedTypes.contains( attributeValue.getID() ) ); + Assert.assertTrue( expectedTypes.contains( attributeValue.getID().toLowerCase() ) ); NamingEnumeration values = attributeValue.getAll(); - HashSet vals = (HashSet)typesVals.get( attributeValue.getID() ); + HashSet vals = (HashSet)typesVals.get( attributeValue.getID().toLowerCase() ); while ( values.hasMore() ) { @@ -150,10 +150,10 @@ attributeValue = (BasicAttribute)attributes.get( 1 ); - Assert.assertTrue( expectedTypes.contains( attributeValue.getID() ) ); + Assert.assertTrue( expectedTypes.contains( attributeValue.getID().toLowerCase() ) ); values = attributeValue.getAll(); - vals = (HashSet)typesVals.get( attributeValue.getID() ); + vals = (HashSet)typesVals.get( attributeValue.getID().toLowerCase() ); while ( values.hasMore() ) { Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/ModifyRequestTest.java URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/ModifyRequestTest.java?rev=232425&r1=232424&r2=232425&view=diff ============================================================================== --- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/ModifyRequestTest.java (original) +++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/ModifyRequestTest.java Fri Aug 12 23:10:40 2005 @@ -144,10 +144,10 @@ ModificationItem modification = (ModificationItem)modifications.get( 1 ); BasicAttribute attributeValue = (BasicAttribute)modification.getAttribute(); - Assert.assertTrue( expectedTypes.contains( attributeValue.getID() ) ); + Assert.assertTrue( expectedTypes.contains( attributeValue.getID().toLowerCase() ) ); NamingEnumeration values = attributeValue.getAll(); - HashSet vals = (HashSet)typesVals.get( attributeValue.getID() ); + HashSet vals = (HashSet)typesVals.get( attributeValue.getID().toLowerCase() ); while ( values.hasMore() ) { Modified: directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java?rev=232425&r1=232424&r2=232425&view=diff ============================================================================== --- directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java (original) +++ directory/sandbox/trunk/asn1-new-codec/src/test/org/apache/asn1/ldap/codec/SearchResultEntryTest.java Fri Aug 12 23:10:40 2005 @@ -77,7 +77,7 @@ 0x30, 0x2a, 0x30, 0x28, // type AttributeDescription, - 0x04, 0x0b, 'o', 'b', 'j', 'e', 'c', 't', 'C', 'l', 'a', 's', 's', + 0x04, 0x0b, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', // vals SET OF AttributeValue } 0x31, 0x19, // AttributeValue ::= OCTET STRING @@ -116,7 +116,7 @@ { BasicAttribute attributeValue = (BasicAttribute)partialAttributesList.get( i ); - Assert.assertEquals( "objectClass", attributeValue.getID() ); + Assert.assertEquals( "objectClass".toLowerCase(), attributeValue.getID().toLowerCase() ); NamingEnumeration values = attributeValue.getAll(); @@ -177,7 +177,7 @@ 0x30, 0x55, 0x30, 0x28, // type AttributeDescription, - 0x04, 0x0b, 'o', 'b', 'j', 'e', 'c', 't', 'C', 'l', 'a', 's', 's', + 0x04, 0x0b, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', // vals SET OF AttributeValue } 0x31, 0x19, // AttributeValue ::= OCTET STRING @@ -186,7 +186,7 @@ 0x04, 0x12, 'o', 'r', 'g', 'a', 'n', 'i', 'z', 'a', 't', 'i', 'o', 'n', 'a', 'l', 'U', 'n', 'i', 't', 0x30, 0x29, // type AttributeDescription, - 0x04, 0x0c, 'o', 'b', 'j', 'e', 'c', 't', 'C', 'l', 'a', 's', 's', '2', + 0x04, 0x0c, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', '2', // vals SET OF AttributeValue } 0x31, 0x19, // AttributeValue ::= OCTET STRING @@ -227,7 +227,7 @@ { BasicAttribute attributeValue = (BasicAttribute)partialAttributesList.get( i ); - Assert.assertEquals( expectedAttributes[i], attributeValue.getID() ); + Assert.assertEquals( expectedAttributes[i].toLowerCase(), attributeValue.getID().toLowerCase() ); NamingEnumeration values = attributeValue.getAll(); @@ -288,7 +288,7 @@ 0x30, 0x43, // PartialAttributeList ::= SEQUENCE OF SEQUENCE { 0x30, 0x41, // type AttributeDescription, - 0x04, 0x0B, 'o', 'b', 'j', 'e', 'c', 't', 'C', 'l', 'a', 's', 's', + 0x04, 0x0B, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', 0x31, 0x32, // vals SET OF AttributeValue } // AttributeValue ::= OCTET STRING 0x04, 0x0D, 'i', 'n', 'e', 't', 'O', 'r', 'g', 'P', 'e', 'r', 's', 'o', 'n', @@ -332,7 +332,7 @@ { BasicAttribute attributeValue = (BasicAttribute)partialAttributesList.get( i ); - Assert.assertEquals( "objectClass", attributeValue.getID() ); + Assert.assertEquals( "objectClass".toLowerCase(), attributeValue.getID().toLowerCase() ); NamingEnumeration values = attributeValue.getAll();