summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {