directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r579320 - /directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
Date Tue, 25 Sep 2007 17:16:44 GMT
Author: elecharny
Date: Tue Sep 25 10:16:42 2007
New Revision: 579320

URL: http://svn.apache.org/viewvc?rev=579320&view=rev
Log:
Minor refactoring

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

Modified: directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java?rev=579320&r1=579319&r2=579320&view=diff
==============================================================================
--- directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
(original)
+++ directory/apacheds/trunk/server-unit/src/test/java/org/apache/directory/server/DelITest.java
Tue Sep 25 10:16:42 2007
@@ -38,8 +38,7 @@
     static final String USER = "uid=admin,ou=system";
     static final String PASSWORD = "secret";
     static final String BASE = "dc=example,dc=com";
-
-
+    
     private LDAPConnection con = null;
 
     protected void setUp() throws LDAPException, Exception {
@@ -58,11 +57,17 @@
      * Try to delete a non existing entry. Expected result code is 32
      * (NO_SUCH_OBJECT).
      */
-    public void testDeleteNotExisting() {
-        try {
+    public void testDeleteNotExisting() 
+    {
+        nbTests = 2;
+        
+        try 
+        {
             con.delete("cn=This does not exist" + "," + BASE);
             fail("deletion should fail");
-        } catch (LDAPException e) {
+        } 
+        catch (LDAPException e) 
+        {
             assertTrue(e.getLDAPResultCode() == LDAPException.NO_SUCH_OBJECT);
         }
     }



Mime
View raw message