roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gma...@apache.org
Subject svn commit: r1503102 - /roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/PermissionTest.java
Date Mon, 15 Jul 2013 01:34:57 GMT
Author: gmazza
Date: Mon Jul 15 01:34:57 2013
New Revision: 1503102

URL: http://svn.apache.org/r1503102
Log:
Fixed the unit test failure in UserTest (PermissionTest not deleting a user that UserTest
was subsequently querying.)

Modified:
    roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/PermissionTest.java

Modified: roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/PermissionTest.java
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/PermissionTest.java?rev=1503102&r1=1503101&r2=1503102&view=diff
==============================================================================
--- roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/PermissionTest.java
(original)
+++ roller/trunk/app/src/test/java/org/apache/roller/weblogger/business/PermissionTest.java
Mon Jul 15 01:34:57 2013
@@ -318,7 +318,10 @@ public class PermissionTest extends Test
         WeblogPermission perm2 = 
             new WeblogPermission(testWeblog, testUser, WeblogPermission.POST);
         assertTrue(umgr.checkPermission(perm, testUser));
-        
+
+        // cleanup the extra test user
+        TestUtils.teardownUser(adminUser.getUserName());
+        TestUtils.endSession(true);
         log.info("END");
     }
 }



Mime
View raw message