tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r440326 [2/2] - in /incubator/tuscany/sandbox/ant/container.python: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/tuscany/ src/main/java/org/apache/tuscany/container/ src/main/java/or...
Date Tue, 05 Sep 2006 11:47:19 GMT
Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/PythonScriptTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/PythonScriptTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/HelloWorldTestCase.java?view=auto&rev=440326
==============================================================================
--- incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/HelloWorldTestCase.java
(added)
+++ incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/HelloWorldTestCase.java
Tue Sep  5 04:47:16 2006
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.tuscany.container.python.function;
+
+
+import org.apache.tuscany.container.python.HelloWorldService;
+import org.apache.tuscany.test.SCATestCase;
+import org.osoa.sca.CompositeContext;
+import org.osoa.sca.CurrentCompositeContext;
+
+/**
+ * This shows how to test the HelloWorld service component.
+ */
+public class HelloWorldTestCase extends SCATestCase {
+
+    private HelloWorldService helloWorldService;
+
+    protected void setUp() throws Exception {
+        addExtension("PythonContainer", getClass().getClassLoader().getResource("META-INF/sca/py.system.scdl"));
+        setApplicationSCDL("org/apache/tuscany/container/python/function/helloworld.scdl");
+        super.setUp();
+
+        CompositeContext context = CurrentCompositeContext.getContext();
+        helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponent");
+    }
+
+    public void testHelloWorld() throws Exception {
+        assertEquals(helloWorldService.sayHello("petra"), "Hello petra");
+    }
+}

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/HelloWorldTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/java/org/apache/tuscany/container/python/function/HelloWorldTestCase.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/resources/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/apache/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/PythonScriptTestCase.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/PythonScriptTestCase.py?view=auto&rev=440326
==============================================================================
--- incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/PythonScriptTestCase.py
(added)
+++ incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/PythonScriptTestCase.py
Tue Sep  5 04:47:16 2006
@@ -0,0 +1,6 @@
+from org.apache.tuscany.container.python import HelloWorldService
+
+class hello(HelloWorldService):
+
+    def sayHello(self, val1):
+       return "Hello " + val1

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Sep  5 04:47:16 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/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/HelloWorld.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/HelloWorld.componentType?view=auto&rev=440326
==============================================================================
--- incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/HelloWorld.componentType
(added)
+++ incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/HelloWorld.componentType
Tue Sep  5 04:47:16 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+    <service name="HelloWorldService">
+        <interface.java interface="org.apache.tuscany.container.python.HelloWorldService"/>
+    </service>
+
+</componentType>

Added: incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.py?view=auto&rev=440326
==============================================================================
--- incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.py
(added)
+++ incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.py
Tue Sep  5 04:47:16 2006
@@ -0,0 +1,6 @@
+from org.apache.tuscany.container.python import HelloWorldService
+
+class hello(HelloWorldService):
+
+    def sayHello(self, val1):
+       return "Hello " + val1

Added: incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.scdl?view=auto&rev=440326
==============================================================================
--- incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.scdl
(added)
+++ incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.scdl
Tue Sep  5 04:47:16 2006
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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:py="http://tuscany.apache.org/xmlns/python/1.0"
+
+           name="HelloWorldComposite">
+
+    <component name="HelloWorldComponent">
+		<py:implementation.python module="org/apache/tuscany/container/python/function/HelloWorld.py"
class="hello" />
+    </component>
+
+</composite>

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.scdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/ant/container.python/src/test/resources/org/apache/tuscany/container/python/function/helloworld.scdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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


Mime
View raw message