tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1041352 - /tuscany/sca-java-1.x/trunk/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm
Date Thu, 02 Dec 2010 12:47:20 GMT
Author: nash
Date: Thu Dec  2 12:47:20 2010
New Revision: 1041352

URL: http://svn.apache.org/viewvc?rev=1041352&view=rev
Log:
TUSCANY-3806: Close the SCA domain after running the tests

Modified:
    tuscany/sca-java-1.x/trunk/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm

Modified: tuscany/sca-java-1.x/trunk/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm?rev=1041352&r1=1041351&r2=1041352&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm
(original)
+++ tuscany/sca-java-1.x/trunk/itest/databindings/interop/src/main/resources/generate/InteropDatabindingTestCase.java.vm
Thu Dec  2 12:47:20 2010
@@ -41,7 +41,6 @@ import $file.getJavaPackage().$file.getF
  */
 public class InteropDatabindingTestCase extends TestCase  {
 
-    private static boolean initalised = false;
     private GreeterService greeterClient;
     private static SCADomain domain;
 
@@ -49,18 +48,15 @@ public class InteropDatabindingTestCase 
      * Runs before each test method
      */
     protected void setUp() throws Exception {
-        if (!initalised) {
-            domain = SCADomain.newInstance("interopgreeter.composite");
-            super.setUp();
-            initalised = true;
-        }
+        domain = SCADomain.newInstance("interopgreeter.composite");
+        super.setUp();
     }
 
     /**
      * Runs after each test method
      */
     protected void tearDown() {
-
+        domain.close();
     }
 
     /**



Mime
View raw message