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/10 20:52:42 UTC

svn commit: r430477 [2/2] - in /incubator/tuscany/java/samples/sca/helloworld.rmiService: ./ META-INF/ src/ src/main/ src/main/java/ src/main/java/helloworld/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/sca/ src/test/ s...

Added: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl?rev=430477&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl (added)
+++ incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl Thu Aug 10 11:52:41 2006
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ *  Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ -->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+           xmlns:rmi="http://tuscany.apache.org/xmlns/binding/rmi/1.0-SNAPSHOT"
+           name="HelloWorldRmiComposite">
+           
+	<service name="HelloWorldRmiService" target="HelloWorldServiceComponent">
+        <interface.java interface="helloworld.HelloWorldService"/>
+        <rmi:binding.rmi uri="HelloWorldRmiService"   />
+        <reference>HelloWorldServiceComponent</reference>
+    </service>
+      
+    <component name="HelloWorldServiceComponent">
+        <implementation.java class="helloworld.HelloWorldImpl"/>
+    </component>
+   
+</composite>

Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Aug 10 11:52:41 2006
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Aug 10 11:52:41 2006
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Aug 10 11:52:41 2006
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Added: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java?rev=430477&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java (added)
+++ incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java Thu Aug 10 11:52:41 2006
@@ -0,0 +1,46 @@
+/**
+ *
+ *  Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
+ */
+package helloworld;
+
+import org.apache.tuscany.test.SCATestCase;
+
+/**
+ * This shows how to test the HelloWorld service component.
+ */
+public class HelloWorldTestCase extends SCATestCase {
+
+    protected void setUp() throws Exception {
+        //Enumeration<URL> scdls = getClass().getClassLoader().getResources("META-INF/sca/extension.scdl");
+        //addExtension("JavaRMIBinding", scdls.nextElement());
+        addExtension("rmi.binding", getClass().getClassLoader().getResource("META-INF/sca/rmi_extension.scdl"));
+        super.setUp();
+        System.out.println("Hit ENTER to exit");
+        System.in.read();
+        System.out.println("Server Stopped!");
+    }
+
+    protected void tearDown() throws Exception {
+        super.tearDown();
+    }
+
+    public void testHelloWorld() throws Exception 
+    {
+           //nothing to test
+    }
+    
+    
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org