tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r511268 - in /incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests: ./ src/main/resources/META-INF/sca/ src/main/resources/helloworld/ src/test/java/helloworld/
Date Sat, 24 Feb 2007 12:50:57 GMT
Author: antelder
Date: Sat Feb 24 04:50:56 2007
New Revision: 511268

URL: http://svn.apache.org/viewvc?view=rev&rev=511268
Log:
Add Python helloworld itest

Added:
    incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.py
  (with props)
Modified:
    incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/pom.xml
    incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/META-INF/sca/application.composite
    incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/test/java/helloworld/HelloWorldClientTestCase.java

Modified: incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/pom.xml?view=diff&rev=511268&r1=511267&r2=511268
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/pom.xml Sat
Feb 24 04:50:56 2007
@@ -30,6 +30,17 @@
     <name>Apache Tuscany Script Container ITests</name>
     <description>Apache Tuscany Script Container Itests</description>
 
+    <repositories>
+       <!-- This is reqquired for Jython as 2.2 Beta1 hasn't made it to the maven repos
yet -->
+       <repository>
+          <id>ant</id>
+          <url>http://people.apache.org/~antelder/maven2</url>
+          <snapshots>
+             <enabled>true</enabled>
+          </snapshots>
+       </repository>
+    </repositories>
+
     <dependencies>
 
         <dependency>
@@ -65,6 +76,13 @@
             <groupId>org.jruby</groupId>
             <artifactId>jruby</artifactId>
             <version>0.9.2</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>jython</groupId>
+            <artifactId>jython</artifactId>
+            <version>2.2b1</version>
             <scope>test</scope>
         </dependency>
 

Modified: incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/META-INF/sca/application.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/META-INF/sca/application.composite?view=diff&rev=511268&r1=511267&r2=511268
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/META-INF/sca/application.composite
(original)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/META-INF/sca/application.composite
Sat Feb 24 04:50:56 2007
@@ -29,4 +29,8 @@
         <implementation.script script="helloworld/helloworld.rb"/>
     </component>
 
+    <component name="HelloWorldPythonComponent">
+        <implementation.script script="helloworld/helloworld.py"/>
+    </component>
+
 </composite>

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.py?view=auto&rev=511268
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.py
(added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.py
Sat Feb 24 04:50:56 2007
@@ -0,0 +1,3 @@
+
+def getGreetings(s):
+   return "pyHello " + s
\ No newline at end of file

Propchange: incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.py
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/test/java/helloworld/HelloWorldClientTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/test/java/helloworld/HelloWorldClientTestCase.java?view=diff&rev=511268&r1=511267&r2=511268
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/test/java/helloworld/HelloWorldClientTestCase.java
(original)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/test/java/helloworld/HelloWorldClientTestCase.java
Sat Feb 24 04:50:56 2007
@@ -50,6 +50,12 @@
         Assert.assertEquals("rbHello Petra", msg);
     }
 
+    public void testHelloWorldPython() throws Exception {
+        HelloWorldService helloWorldService = compositeContext.locateService(HelloWorldService.class,
"HelloWorldPythonComponent");
+        String msg = helloWorldService.getGreetings("Petra");
+        Assert.assertEquals("pyHello Petra", msg);
+    }
+
     @Override
     protected void tearDown() throws Exception {
     	super.tearDown();



---------------------------------------------------------------------
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