summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-04-18 07:36:53 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-04-18 07:36:53 +0000
commit6c7ad7c110656f47273dc23228b41e46023492f3 (patch)
tree348f4838b71e73278bd01153e93db88e22e9c189 /branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java
parent5395b820e60118c68eab9c442af3c53e0e2d7f50 (diff)
Create 1.5 branch
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@766260 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java')
-rw-r--r--branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java b/branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java
new file mode 100644
index 0000000000..aecaad3360
--- /dev/null
+++ b/branches/sca-java-1.5/itest/contribution-folder/src/test/java/ContributionZIPTestCaseFIXME.java
@@ -0,0 +1,35 @@
+
+
+import junit.framework.TestCase;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import calculator.CalculatorService;
+
+
+
+/**
+ * Test SCADomain.newInstance and invocation of a service.
+ *
+ * @version $Rev: 608205 $ $Date: 2008-01-02 20:29:05 +0000 (Wed, 02 Jan 2008) $
+ */
+public class ContributionZIPTestCaseFIXME extends TestCase {
+
+ private SCADomain domain;
+
+ @Override
+ protected void setUp() throws Exception {
+ domain = SCADomain.newInstance("myDomain", "src/test/resources/repository3/contribution.zip", null );
+ }
+
+ public void testInvoke() throws Exception {
+ CalculatorService service = domain.getService(CalculatorService.class, "CalculatorServiceComponent");
+ assertEquals(3.0, service.add(1, 2));
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ domain.close();
+ }
+
+}