You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@continuum.apache.org by br...@apache.org on 2013/11/18 08:41:26 UTC
svn commit: r1542936 -
/continuum/branches/CONTINUUM-2713/continuum-webapp-test/src/test/testng/org/apache/continuum/web/test/ProjectGroupTest.java
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()