Author: midon
Date: Tue Mar 3 20:00:45 2009
New Revision: 749720
URL: http://svn.apache.org/viewvc?rev=749720&view=rev
Log:
test processes seem to interfere with each other
Modified:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredServicesTest.java
Modified:
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredServicesTest.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredServicesTest.java?rev=749720&r1=749719&r2=749720&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredServicesTest.java
(original)
+++
ode/branches/APACHE_ODE_1.X/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredServicesTest.java
Tue Mar 3 20:00:45 2009
@@ -20,6 +20,9 @@
package org.apache.ode.axis2.rampart.policy;
import static org.testng.AssertJUnit.assertTrue;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
+
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
@@ -51,14 +54,13 @@
return bundles;
}
-
- @BeforeClass
+ @BeforeMethod
protected void setUp() throws Exception {
// mind the annotation above also
startServer(testDir, "webapp/WEB-INF/conf/axis2.xml");
}
- @AfterClass
+ @AfterMethod
protected void tearDown() throws Exception {
// simply change the annotation, see above
super.tearDown();