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 21:59:35 UTC

svn commit: r519142 [2/2] - in /incubator/tuscany/java/sca/extensions/script/testing: ./ javascript/ javascript/helloworld/ javascript/helloworld/src/ javascript/helloworld/src/main/ javascript/helloworld/src/main/java/ javascript/helloworld/src/main/j...

Added: incubator/tuscany/java/sca/extensions/script/testing/javascript/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/javascript/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/java/org/apache/tuscany/sca/runtime/itest/smoketest/HelloServiceImpl.java Fri Mar 16 13:59:30 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/javascript/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/javascript/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/javascript/helloworld/src/main/resources/HelloWorld.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.componentType?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.componentType (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.componentType Fri Mar 16 13:59:30 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/javascript/helloworld/src/main/resources/HelloWorld.componentType
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.js
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.js?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.js (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/HelloWorld.js Fri Mar 16 13:59:30 2007
@@ -0,0 +1,3 @@
+function getGreeting(name) {
+   return "Hello " + name;
+}

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

Added: incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/META-INF/sca/default.scdl?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/META-INF/sca/default.scdl (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/main/resources/META-INF/sca/default.scdl Fri Mar 16 13:59:30 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.js"/>
+        <!-- property name="greeting">Hello</property -->
+    </component>
+
+</composite>

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

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

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

Added: incubator/tuscany/java/sca/extensions/script/testing/javascript/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/javascript/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/test/java/org/apache/tuscany/sca/runtime/itest/smoketest/BasicTestComponent.java Fri Mar 16 13:59:30 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("Hello petra", hello.getGreeting("petra"));
+    }
+}

Propchange: incubator/tuscany/java/sca/extensions/script/testing/javascript/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/javascript/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/javascript/helloworld/src/test/resources/itest.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/test/resources/itest.scdl?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/test/resources/itest.scdl (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/helloworld/src/test/resources/itest.scdl Fri Mar 16 13:59:30 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/javascript/helloworld/src/test/resources/itest.scdl
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: incubator/tuscany/java/sca/extensions/script/testing/javascript/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/javascript/pom.xml?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/javascript/pom.xml (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/javascript/pom.xml Fri Mar 16 13:59:30 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-javascript</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Tuscany Script Container Testing for JavaScript</name>
+
+    <modules>
+        <module>helloworld</module>
+    </modules>
+
+</project>

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

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

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

Added: incubator/tuscany/java/sca/extensions/script/testing/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/extensions/script/testing/pom.xml?view=auto&rev=519142
==============================================================================
--- incubator/tuscany/java/sca/extensions/script/testing/pom.xml (added)
+++ incubator/tuscany/java/sca/extensions/script/testing/pom.xml Fri Mar 16 13:59:30 2007
@@ -0,0 +1,68 @@
+<?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</groupId>
+        <artifactId>parent</artifactId>
+        <version>2.0-alpha2-incubating-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.apache.tuscany.sca.script.testing</groupId>
+    <artifactId>parent</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Tuscany Script Container Tests</name>
+
+    <properties>
+        <!-- version the SCA API that we implement -->
+        <scaSpecVersion>1.0</scaSpecVersion>
+
+        <!-- version the Apache Tuscany kernel that the runtimes work with -->
+        <kernelVersion>2.0-alpha-incubating</kernelVersion>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.osoa</groupId>
+                <artifactId>sca-api-r${scaSpecVersion}</artifactId>
+                <version>1.0-incubating</version>
+                <scope>compile</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.easymock</groupId>
+                <artifactId>easymock</artifactId>
+                <version>2.2</version>
+                <scope>test</scope>
+            </dependency>
+            <dependency>
+                <groupId>junit</groupId>
+                <artifactId>junit</artifactId>
+                <version>3.8.1</version>
+                <scope>test</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <modules>
+        <module>javascript</module>
+    </modules>
+
+</project>

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

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

Propchange: incubator/tuscany/java/sca/extensions/script/testing/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