summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-07-24 00:56:16 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2008-07-24 00:56:16 +0000
commita20cf1bd69e078b875244b81594964566ed45cec (patch)
tree5da3f4806b1a2b31b3c67c499fe6ad9f84f7233d /java/sca
parent43369876b5a64ecf4500aee055eabd2aa7e5381c (diff)
Add the invocation of a service to the test case
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@679257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java b/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
index 50d1363887..8ffcbc0a56 100644
--- a/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
+++ b/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
@@ -19,6 +19,8 @@
package org.apache.tuscany.sca.implementation.node.osgi;
+import hello.HelloWorld;
+
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
@@ -165,6 +167,11 @@ public class LauncherBundleActivatorTestCase {
Object node = create.invoke(instance, "HelloWorld.composite", getClass().getClassLoader());
Method start = node.getClass().getMethod("start");
start.invoke(node);
+
+ Method getService = node.getClass().getMethod("getService", Class.class, String.class);
+ HelloWorld hw = (HelloWorld) getService.invoke(node, HelloWorld.class, "HelloWorld");
+ hw.hello("OSGi");
+
Method stop = node.getClass().getMethod("stop");
stop.invoke(node);
} finally {