directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r675283 - /directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
Date Wed, 09 Jul 2008 18:21:24 GMT
Author: elecharny
Date: Wed Jul  9 11:21:23 2008
New Revision: 675283

URL: http://svn.apache.org/viewvc?rev=675283&view=rev
Log:
Added some assert to demonstrate that the certificate is not modified by the server.

Modified:
    directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java

Modified: directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java?rev=675283&r1=675282&r2=675283&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
(original)
+++ directory/apacheds/branches/bigbang/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
Wed Jul  9 11:21:23 2008
@@ -20,6 +20,7 @@
 package org.apache.directory.server;
 
 
+import java.util.Arrays;
 import java.util.Hashtable;
 
 import javax.naming.NamingEnumeration;
@@ -604,6 +605,8 @@
         Attribute attr = attrs.get( "userCertificate" );
         assertNotNull( attr );
         assertTrue( attr.contains( newValue ) );
+        byte[] certificate = (byte[])attr.get();
+        assertTrue( Arrays.equals( newValue, certificate ) );
         assertEquals( 1, attr.size() );
     }
 }



Mime
View raw message