directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r279896 - /directory/shared/ldap/trunk/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareRequestRuleTest.java
Date Fri, 09 Sep 2005 22:25:34 GMT
Author: elecharny
Date: Fri Sep  9 15:25:28 2005
New Revision: 279896

URL: http://svn.apache.org/viewcvs?rev=279896&view=rev
Log:
Modified the test to be able to compare the expected and decoded PDU without error

Modified:
    directory/shared/ldap/trunk/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareRequestRuleTest.java

Modified: directory/shared/ldap/trunk/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareRequestRuleTest.java
URL: http://svn.apache.org/viewcvs/directory/shared/ldap/trunk/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareRequestRuleTest.java?rev=279896&r1=279895&r2=279896&view=diff
==============================================================================
--- directory/shared/ldap/trunk/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareRequestRuleTest.java
(original)
+++ directory/shared/ldap/trunk/apache-provider/src/test/org/apache/ldap/common/berlib/asn1/decoder/compare/CompareRequestRuleTest.java
Fri Sep  9 15:25:28 2005
@@ -41,7 +41,14 @@
         expected.setAssertionValue( "world" ) ;
         expected.setName( "uid=akarasulu,dc=example,dc=com" ) ;
 
-        assertEquals( expected, decoded ) ;
+        assertEquals( expected.getAssertionValue(), decoded.getAssertionValue() ) ;
+        assertEquals( expected.getAttributeId(), decoded.getAttributeId() ) ;
+        assertEquals( expected.getName(), decoded.getName() ) ;
+        assertEquals( expected.getMessageId(), decoded.getMessageId() ) ;
+        assertEquals( expected.getType(), decoded.getType() ) ;
+        assertEquals( 0, expected.getControls().size() );
+        assertEquals( 0, decoded.getControls().size() ) ;
+
     }
 }
 



Mime
View raw message