You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2006/08/14 14:44:46 UTC
svn commit: r431332 - in
/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld:
HelloWorldRunner.java HelloWorldTestCase.java
Author: antelder
Date: Mon Aug 14 05:44:46 2006
New Revision: 431332
URL: http://svn.apache.org/viewvc?rev=431332&view=rev
Log:
Fix the js sample testcase and rename so it doesn't run in the mvn build
Added:
incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java
- copied, changed from r431311, incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java
Removed:
incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java
Copied: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java (from r431311, incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java)
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java?p2=incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java&p1=incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java&r1=431311&r2=431332&rev=431332&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldTestCase.java (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/src/test/java/helloworld/HelloWorldRunner.java Mon Aug 14 05:44:46 2006
@@ -19,7 +19,6 @@
package helloworld;
import java.net.URL;
-import java.util.Enumeration;
import org.apache.tuscany.test.SCATestCase;
import org.osoa.sca.CompositeContext;
@@ -28,27 +27,23 @@
/**
* This shows how to test the HelloWorld service component.
*/
-public class HelloWorldTestCase extends SCATestCase {
+public class HelloWorldRunner extends SCATestCase {
private HelloWorldService helloWorldService;
protected void setUp() throws Exception {
-/*
- Enumeration<URL> scdls = getClass().getClassLoader().getResources("META-INF/sca/default.scdl");
- // both the application and JavaScript container use the name default.scdl, skip over the application one
- scdls.nextElement();
- addExtension("JavaScriptContainer", scdls.nextElement());
+ URL scdl = getClass().getClassLoader().getResource("META-INF/sca/js.system.scdl");
+ addExtension("JavaScriptContainer", scdl);
super.setUp();
CompositeContext context = CurrentCompositeContext.getContext();
helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponent");
-*/
}
protected void tearDown() throws Exception {
}
public void testHelloWorld() throws Exception {
-// assertEquals(helloWorldService.sayHello("petra"), "Hello petra");
+ assertEquals(helloWorldService.sayHello("petra"), "Hello petra");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org