directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r675281 - /directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
Date Wed, 09 Jul 2008 18:19:25 GMT
Author: elecharny
Date: Wed Jul  9 11:19:25 2008
New Revision: 675281

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

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

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java?rev=675281&r1=675280&r2=675281&view=diff
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/ModifyAddTest.java
Wed Jul  9 11:19:25 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