tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r495881 [2/2] - in /incubator/tuscany/java/samples/sca/helloworldGroovy: ./ 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/ src/test/java/ s...
Date Sat, 13 Jan 2007 12:26:18 GMT
Added: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/NOTICE?view=auto&rev=495881
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/NOTICE
(added)
+++ incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/NOTICE
Sat Jan 13 04:26:16 2007
@@ -0,0 +1,18 @@
+=========================================================================
+==  NOTICE file corresponding to the section 4 d of                    ==
+==  the Apache License, Version 2.0,                                   ==
+==  in this case for the Apache Tuscany distribution.                  ==
+=========================================================================
+
+This product includes software developed by the Apache Software Foundation
+(http://www.apache.org/).
+
+This product also includes software developed by:
+- the Eclipse Modeling Framework project (http://www.eclipse.org/emf/)
+- the Celtix project (http://celtix.objectweb.org/)
+- the Mozilla Rhino project (http://www.mozilla.org/rhino/)
+- the GlassFish JAX-WS project (https://jax-ws.dev.java.net/)
+
+Please read the LICENSE.txt file present in the root directory of this
+distribution.
+

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl?view=auto&rev=495881
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
(added)
+++ incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
Sat Jan 13 04:26:16 2007
@@ -0,0 +1,28 @@
+<?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:groovy="http://tuscany.apache.org/xmlns/groovy/1.0"
+           name="groovy.helloWorld">
+
+    <component name="HelloWorldComponent">
+		<groovy:implementation.groovy script="HelloWorld.groovy"/>
+    </component>
+    
+</composite>

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/test/
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/test/java/
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/test/java/helloworld/
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java?view=auto&rev=495881
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java
(added)
+++ incubator/tuscany/java/samples/sca/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java
Sat Jan 13 04:26:16 2007
@@ -0,0 +1,47 @@
+/*
+ * 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 helloworld;
+
+import java.net.URL;
+
+import org.apache.tuscany.test.SCATestCase;
+import org.osoa.sca.CompositeContext;
+import org.osoa.sca.CurrentCompositeContext;
+
+public class HelloWorldTestCase extends SCATestCase{
+    private HelloWorldService helloWorldService;
+
+    protected void setUp() throws Exception {
+        URL scdl = getClass().getClassLoader().getResource("META-INF/sca/groovy.system.scdl");
+        addExtension("GroovyContainer", scdl);
+        setApplicationSCDL(HelloWorldService.class, "META-INF/sca/default.scdl");
+        super.setUp();
+
+        CompositeContext context = CurrentCompositeContext.getContext();
+        helloWorldService = context.locateService(HelloWorldService.class, "HelloWorldComponent");
+    }
+
+    protected void tearDown() throws Exception {
+    }
+
+    public void testHelloWorld() throws Exception {
+        assertEquals("Hello World", helloWorldService.sayHello("World"));
+    }
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
--- svn:ignores (added)
+++ svn:ignores Sat Jan 13 04:26:16 2007
@@ -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/helloworldGroovy/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
    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