Author: rfeng
Date: Wed Jul 23 17:56:16 2008
New Revision: 679257
URL: http://svn.apache.org/viewvc?rev=679257&view=rev
Log:
Add the invocation of a service to the test case
Modified:
tuscany/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
Modified:
tuscany/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
URL:
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java?rev=679257&r1=679256&r2=679257&view=diff
==============================================================================
---
tuscany/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
(original)
+++
tuscany/java/sca/modules/implementation-node-osgi-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/osgi/LauncherBundleActivatorTestCase.java
Wed Jul 23 17:56:16 2008
@@ -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 @@
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 {