tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r511276 - 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 14:04:25 GMT
Author: antelder
Date: Sat Feb 24 06:04:24 2007
New Revision: 511276

URL: http://svn.apache.org/viewvc?view=rev&rev=511276
Log:
Add Groovy helloworld test. Doesn't work yet

Added:
    incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.groovy
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=511276&r1=511275&r2=511276
==============================================================================
--- 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 06:04:24 2007
@@ -86,6 +86,13 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>groovy</groupId>
+            <artifactId>groovy-all</artifactId>
+            <version>1.0</version>
+            <scope>test</scope>
+        </dependency>
+
     </dependencies>
 
     <build>

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=511276&r1=511275&r2=511276
==============================================================================
--- 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 06:04:24 2007
@@ -33,4 +33,8 @@
         <implementation.script script="helloworld/helloworld.py"/>
     </component>
 
+    <component name="HelloWorldGroovyComponent">
+        <implementation.script script="helloworld/helloworld.groovy" />
+    </component>
+
 </composite>

Added: incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.groovy
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.groovy?view=auto&rev=511276
==============================================================================
--- incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.groovy
(added)
+++ incubator/tuscany/branches/sca-java-integration/sca/extensions/script/itests/src/main/resources/helloworld/helloworld.groovy
Sat Feb 24 06:04:24 2007
@@ -0,0 +1,22 @@
+/*
+ * 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.    
+ */
+ 
+String getGreetings(s) {
+   return "groovyHello " + s;
+}

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=511276&r1=511275&r2=511276
==============================================================================
--- 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 06:04:24 2007
@@ -56,6 +56,13 @@
         Assert.assertEquals("pyHello Petra", msg);
     }
 
+// TODO: Groovy doesn't work yet. Looks like a bug in the Groovy BSF engine
+//    public void testHelloWorldGroovy() throws Exception {
+//        HelloWorldService helloWorldService = compositeContext.locateService(HelloWorldService.class,
"HelloWorldGroovyComponent");
+//        String msg = helloWorldService.getGreetings("Petra");
+//        Assert.assertEquals("groovyHello 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