tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwilli...@apache.org
Subject svn commit: r658049 - /incubator/tuscany/java/sca/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java
Date Mon, 19 May 2008 23:57:42 GMT
Author: kwilliams
Date: Mon May 19 16:57:42 2008
New Revision: 658049

URL: http://svn.apache.org/viewvc?rev=658049&view=rev
Log:
More refactoring

Modified:
    incubator/tuscany/java/sca/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java

Modified: incubator/tuscany/java/sca/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java?rev=658049&r1=658048&r2=658049&view=diff
==============================================================================
--- incubator/tuscany/java/sca/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java
(original)
+++ incubator/tuscany/java/sca/vtest/java-api/annotations/reference/src/test/java/org/apache/tuscany/sca/vtest/javaapi/annotations/reference/ReferenceAnnotationTestCase.java
Mon May 19 16:57:42 2008
@@ -22,7 +22,6 @@
 import static org.junit.Assert.fail;
 import junit.framework.Assert;
 
-import org.apache.tuscany.sca.host.embedded.SCADomain;
 import org.apache.tuscany.sca.vtest.utilities.ServiceFinder;
 import org.junit.AfterClass;
 import org.junit.BeforeClass;
@@ -63,16 +62,15 @@
     @Ignore
     // JIRA T-2145
     public void bogusComponentName() throws Exception {
-        SCADomain tempDomain = SCADomain.newInstance(compositeName);
+        ServiceFinder.init(compositeName);
         try {
-            AService a = tempDomain.getService(AService.class, "AReallyBogusComponentName");
+            AService a = ServiceFinder.getService(AService.class, "AReallyBogusComponentName");
             if (a == null)
                 fail("Should have thrown an exception rather than return null");
             else
                 fail("Should have thrown an exception rather than return a proxy");
         } finally {
-            if (tempDomain != null)
-                tempDomain.close();
+            ServiceFinder.cleanup();
         }
 
     }



Mime
View raw message