You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mi...@apache.org on 2009/03/07 00:21:56 UTC

svn commit: r751132 - in /ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart: basic/SecuredProcessesTest.java basic/SecuredServicesTest.java policy/SecuredProcessesTest.java

Author: midon
Date: Fri Mar  6 23:21:56 2009
New Revision: 751132

URL: http://svn.apache.org/viewvc?rev=751132&view=rev
Log:
restart server before each test

Modified:
    ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredProcessesTest.java
    ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredServicesTest.java
    ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredProcessesTest.java

Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredProcessesTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredProcessesTest.java?rev=751132&r1=751131&r2=751132&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredProcessesTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredProcessesTest.java Fri Mar  6 23:21:56 2009
@@ -20,8 +20,8 @@
 package org.apache.ode.axis2.rampart.basic;
 
 import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
 import org.apache.axis2.context.ConfigurationContextFactory;
@@ -67,13 +67,13 @@
     }
 
 
-    @BeforeClass
+    @BeforeMethod
     protected void setUp() throws Exception {
         // mind the annotation above: start the server only once for all tests
         startServer(testDir, "webapp/WEB-INF/conf/axis2.xml");
     }
 
-    @AfterClass
+    @AfterMethod
     protected void tearDown() throws Exception {
         // mind the annotation above: start the server only once for all tests
         super.tearDown();
@@ -113,4 +113,4 @@
 
         return elem;
     }
-}
\ No newline at end of file
+}

Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredServicesTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredServicesTest.java?rev=751132&r1=751131&r2=751132&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredServicesTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/basic/SecuredServicesTest.java Fri Mar  6 23:21:56 2009
@@ -20,8 +20,8 @@
 package org.apache.ode.axis2.rampart.basic;
 
 import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
 import org.testng.annotations.BeforeTest;
@@ -57,13 +57,13 @@
     }
 
 
-    @BeforeClass
+    @BeforeMethod
     protected void setUp() throws Exception {
         // mind the annotation above: start the server only once for all tests
         startServer(testDir, "webapp/WEB-INF/conf/axis2.xml");
     }
 
-    @AfterClass
+    @AfterMethod
     protected void tearDown() throws Exception {
         // mind the annotation above: start the server only once for all tests
         super.tearDown();

Modified: ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredProcessesTest.java
URL: http://svn.apache.org/viewvc/ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredProcessesTest.java?rev=751132&r1=751131&r2=751132&view=diff
==============================================================================
--- ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredProcessesTest.java (original)
+++ ode/trunk/axis2-war/src/test/java/org/apache/ode/axis2/rampart/policy/SecuredProcessesTest.java Fri Mar  6 23:21:56 2009
@@ -20,8 +20,8 @@
 package org.apache.ode.axis2.rampart.policy;
 
 import static org.testng.AssertJUnit.assertTrue;
-import org.testng.annotations.AfterClass;
-import org.testng.annotations.BeforeClass;
+import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeMethod;
 import org.testng.annotations.DataProvider;
 import org.testng.annotations.Test;
 import org.apache.axis2.context.ConfigurationContextFactory;
@@ -72,13 +72,13 @@
     }
 
 
-    @BeforeClass
+    @BeforeMethod
     protected void setUp() throws Exception {
         // mind the annotation above: start the server only once for all tests
         startServer(testDir, "webapp/WEB-INF/conf/axis2.xml");
     }
 
-    @AfterClass
+    @AfterMethod
     protected void tearDown() throws Exception {
         // mind the annotation above: start the server only once for all tests
         super.tearDown();
@@ -129,4 +129,4 @@
 
         return elem;
     }
-}
\ No newline at end of file
+}