tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r494493 - in /incubator/tuscany/java/sca/services/containers/container.groovy: pom.xml src/test/java/org/apache/tuscany/container/groovy/PropertyTestCase.java src/test/java/org/apache/tuscany/container/groovy/WireTestCase.java
Date Tue, 09 Jan 2007 17:17:00 GMT
Author: antelder
Date: Tue Jan  9 09:16:58 2007
New Revision: 494493

URL: http://svn.apache.org/viewvc?view=rev&rev=494493
Log:
Update to Groovy 1.0 release

Modified:
    incubator/tuscany/java/sca/services/containers/container.groovy/pom.xml
    incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/PropertyTestCase.java
    incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/WireTestCase.java

Modified: incubator/tuscany/java/sca/services/containers/container.groovy/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/containers/container.groovy/pom.xml?view=diff&rev=494493&r1=494492&r2=494493
==============================================================================
--- incubator/tuscany/java/sca/services/containers/container.groovy/pom.xml (original)
+++ incubator/tuscany/java/sca/services/containers/container.groovy/pom.xml Tue Jan  9 09:16:58
2007
@@ -40,21 +40,9 @@
 
         <dependency>
             <groupId>groovy</groupId>
-            <artifactId>groovy</artifactId>
-            <version>1.0-jsr-05</version>
-            <scope>provided</scope>
-            <exclusions>
-                <exclusion>
-                    <groupId>cglib</groupId>
-                    <artifactId>cglib-full</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
-        <dependency>
-            <groupId>xpp3</groupId>
-            <artifactId>xpp3</artifactId>
-            <version>1.1.3.4-RC8</version>
-            <scope>provided</scope>
+            <artifactId>groovy-all</artifactId>
+            <version>1.0</version>
+            <scope>compile</scope>
         </dependency>
 
         <dependency>

Modified: incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/PropertyTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/PropertyTestCase.java?view=diff&rev=494493&r1=494492&r2=494493
==============================================================================
--- incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/PropertyTestCase.java
(original)
+++ incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/PropertyTestCase.java
Tue Jan  9 09:16:58 2007
@@ -44,12 +44,15 @@
  */
 public class PropertyTestCase extends TestCase {
 
-    private static final String SCRIPT = "import org.apache.tuscany.container.groovy.mock.Greeting;"
-        + "class Foo implements Greeting{"
-        + "   String property;"
-        + "   public String greet(String name){"
-        + "       return property;  "
-        + "   }"
+    private static final String SCRIPT = "import org.apache.tuscany.container.groovy.mock.Greeting;\n"
+        + "class Foo implements Greeting{\n"
+        + "   String property;\n"
+        + "   public String greet(String name){\n"
+        + "       return property;\n"
+        + "   }\n"
+        + "   public String setWire(Greeting ref){\n"
+        + "       return null;\n"
+        + "   }\n"
         + "}";
 
     private ScopeContainer scopeContainer;

Modified: incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/WireTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/WireTestCase.java?view=diff&rev=494493&r1=494492&r2=494493
==============================================================================
--- incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/WireTestCase.java
(original)
+++ incubator/tuscany/java/sca/services/containers/container.groovy/src/test/java/org/apache/tuscany/container/groovy/WireTestCase.java
Tue Jan  9 09:16:58 2007
@@ -61,25 +61,27 @@
  */
 public class WireTestCase extends TestCase {
 
-    private static final String SCRIPT = "import org.apache.tuscany.container.groovy.mock.Greeting;"
-        + "class Foo implements Greeting{"
-        + "   Greeting wire;"
-        + "   "
-        + "   void setWire(Greeting ref){"
-        + "       wire = ref;"
-        + "   };"
-        + "   "
-        + "   String greet(String name){"
-        + "       return wire.greet(name);  "
-        + "   };"
-        + "}";
+    private static final String SCRIPT = "import org.apache.tuscany.container.groovy.mock.Greeting;\n"
+        + "class Foo implements Greeting{\n"
+        + "   Greeting wire;\n"
+        + "   \n"
+        + "   String setWire(Greeting ref){\n"
+        + "       wire = ref;\n"
+        + "   };\n"
+        + "   \n"
+        + "   String greet(String name){\n"
+        + "       return wire.greet(name);\n"
+        + "   };\n"
+        + "}\n";
 
     private static final String SCRIPT2 = "import org.apache.tuscany.container.groovy.mock.Greeting;"
-        + "class Foo implements Greeting{"
-        + "   public String greet(String name){"
-        + "       return name;  "
-        + "   }"
-        + "}";
+        + "class Foo implements Greeting {\n"
+        + "   public String greet(String name){\n"
+        + "       return name;\n"
+        + "   }\n"
+        + "   String setWire(Greeting ref){\n"
+        + "   };\n"
+        + "}\n";
 
     private Class<? extends GroovyObject> implClass1;
     private Class<? extends GroovyObject> implClass2;



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