directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
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 GMT
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();
             



Mime
View raw message