continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1542936 - /continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java
Date Mon, 18 Nov 2013 07:41:26 GMT
Author: brett
Date: Mon Nov 18 07:41:25 2013
New Revision: 1542936

URL: http://svn.apache.org/r1542936
Log:
[CONTINUUM-2713] ensure tests can be re-run

Modified:
    continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java

Modified: continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java
URL: http://svn.apache.org/viewvc/continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java?rev=1542936&r1=1542935&r2=1542936&view=diff
==============================================================================
--- continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java
(original)
+++ continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java
Mon Nov 18 07:41:25 2013
@@ -81,7 +81,11 @@ public class ProjectGroupTest
         String groupId = "com.example.this-is-a-long-group-id";
         String description = "";
 
-        addProjectGroup( name, groupId, description, true );
+        try {
+            addProjectGroup( name, groupId, description, true );
+        } finally {
+            removeProjectGroup( name, false );
+        }
     }
 
     public void testAddProjectGroupWithPunctuation()
@@ -91,7 +95,11 @@ public class ProjectGroupTest
         String groupId = "com.example.test";
         String description = "";
 
-        addProjectGroup( name, groupId, description, true );
+        try {
+            addProjectGroup( name, groupId, description, true );
+        } finally {
+            removeProjectGroup( name, false );
+        }
     }
 
     public void testAddProjectGroupWithEmptyString()



Mime
View raw message