You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2007/03/16 23:17:25 UTC

svn commit: r519161 [2/2] - in /incubator/tuscany/java/sca/extensions/script/testing/groovy: ./ helloworld/ helloworld/src/ helloworld/src/main/ helloworld/src/main/java/ helloworld/src/main/java/org/ helloworld/src/main/java/org/apache/ helloworld/src...

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java Fri Mar 16 15:17:22 2007
@@ -0,0 +1,36 @@
+/*
+ * 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.sca.runtime.itest.smoketest;
+
+import org.osoa.sca.annotations.Property;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class HelloServiceImpl implements HelloService {
+    private final String greeting;
+
+    public HelloServiceImpl(@Property(name="greeting")String greeting) {
+        this.greeting = greeting;
+    }
+
+    public String getGreeting(String name) {
+        return greeting + " " + name;
+    }
+}

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType Fri Mar 16 15:17:22 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+               xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance">
+
+  <service name="HelloService">
+     <interface.java class="org.apache.tuscany.sca.runtime.itest.smoketest.HelloService" />
+  </service>
+
+</componentType>              
+       
\ No newline at end of file

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.componentType
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.groovy
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.groovy?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.groovy (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/HelloWorld.groovy Fri Mar 16 15:17:22 2007
@@ -0,0 +1,4 @@
+def getGreeting(name) { 
+   return 'groovyHello ' + name
+}
+

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl Fri Mar 16 15:17:22 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"
+           name="JavaScriptTestingComposite">
+
+    <component name="Hello">
+        <implementation.script script="HelloWorld.groovy"/>
+        <!-- property name="greeting">Hello</property -->
+    </component>
+
+</composite>

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java Fri Mar 16 15:17:22 2007
@@ -0,0 +1,34 @@
+/*
+ * 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.sca.runtime.itest.smoketest;
+
+import junit.framework.TestCase;
+import org.osoa.sca.annotations.Reference;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class BasicTestComponent extends TestCase {
+    @Reference
+    public HelloService hello;
+
+    public void testGreeting() {
+        assertEquals("groovyHello petra", hello.getGreeting("petra"));
+    }
+}

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl Fri Mar 16 15:17:22 2007
@@ -0,0 +1,31 @@
+<?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:tuscany="http://tuscany.apache.org/xmlns/sca/2.0-alpha"
+           name="TestHarnessComposite">
+
+    <include name="ITestSmoketestComposite" scdlResource="META-INF/sca/default.scdl"/>
+
+    <component name="testComponent">
+        <tuscany:junit class="org.apache.tuscany.sca.runtime.itest.smoketest.BasicTestComponent"/>
+        <reference name="hello" target="Hello"/>
+    </component>
+
+</composite>

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/helloworld/src/test/resources/itest.scdl
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml?view=auto&rev=519161
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml Fri Mar 16 15:17:22 2007
@@ -0,0 +1,36 @@
+<?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.    
+-->
+<project>
+    <parent>
+        <groupId>org.apache.tuscany.sca.script.testing</groupId>
+        <artifactId>parent</artifactId>
+        <version>2.0-alpha2-incubating-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>testing-groovy</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Tuscany Script Container Testing for Groovy</name>
+
+    <modules>
+        <module>helloworld</module>
+    </modules>
+
+</project>

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/extensions/script/testing/groovy/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



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