You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by va...@apache.org on 2008/06/10 07:06:03 UTC

svn commit: r665982 - /incubator/tuscany/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java

Author: vamsic007
Date: Mon Jun  9 22:06:03 2008
New Revision: 665982

URL: http://svn.apache.org/viewvc?rev=665982&view=rev
Log:
Initialize and cleanup only once for all the tests.

Modified:
    incubator/tuscany/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java

Modified: incubator/tuscany/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java?rev=665982&r1=665981&r2=665982&view=diff
==============================================================================
--- incubator/tuscany/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java (original)
+++ incubator/tuscany/java/sca/itest/databindings/jaxb-bottom-up/src/test/java/org/apache/tuscany/sca/itest/databindings/jaxb/DatabindingTestCase.java Mon Jun  9 22:06:03 2008
@@ -27,8 +27,8 @@
 import junit.framework.Assert;
 
 import org.apache.tuscany.sca.host.embedded.SCADomain;
-import org.junit.After;
-import org.junit.Before;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
 import org.junit.Test;
 
 /**
@@ -36,13 +36,13 @@
  */
 public class DatabindingTestCase {
 
-    private SCADomain domain;
+    private static SCADomain domain;
 
     /**
-     * Runs before each test method
+     * Runs once before running the tests
      */
-    @Before
-    public void setUp() throws Exception {
+    @BeforeClass
+    public static void setUp() throws Exception {
         try { 
             domain = SCADomain.newInstance("helloservice.composite");
         } catch(Throwable e) {
@@ -51,10 +51,10 @@
     }
 
     /**
-     * Runs after each test method
+     * Runs once after running the tests
      */
-    @After
-    public void tearDown() {
+    @AfterClass
+    public static void tearDown() {
         domain.close();
     }