summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests')
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType9
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js20
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType11
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js20
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType13
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js20
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType9
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js26
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType9
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js29
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType11
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js20
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType9
-rw-r--r--sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js28
14 files changed, 234 insertions, 0 deletions
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType
new file mode 100644
index 0000000000..90b6c09015
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+ </service>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js
new file mode 100644
index 0000000000..b3104f78a5
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js
@@ -0,0 +1,20 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+function getGreetings(name) {
+ return "jsHello " + name;
+}
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType
new file mode 100644
index 0000000000..33208811bf
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+ </service>
+
+ <property name="salutation" type="xsd:string" default="Hi"/>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js
new file mode 100644
index 0000000000..4f91dba40e
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js
@@ -0,0 +1,20 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+function getGreetings(name) {
+ return salutation + " " + name;
+}
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType
new file mode 100644
index 0000000000..1bc6922e6d
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+ </service>
+
+ <reference name="SalutationService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.Salutation"/>
+ </reference>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js
new file mode 100644
index 0000000000..f3160f6f65
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js
@@ -0,0 +1,20 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+function getGreetings(name) {
+ return SalutationService.getSalutation() + " " + name;
+}
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType
new file mode 100644
index 0000000000..90b6c09015
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+ </service>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js
new file mode 100644
index 0000000000..338c3ac3cd
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js
@@ -0,0 +1,26 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+initSalutation();
+
+function getGreetings(name) {
+ return SALUTATION + name;
+}
+
+function initSalutation() {
+ SALUTATION = "Bonjour ";
+}
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType
new file mode 100644
index 0000000000..90b6c09015
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.HelloWorld"/>
+ </service>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js
new file mode 100644
index 0000000000..f01cd1727f
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js
@@ -0,0 +1,29 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+//importPackage(Packages.sample.utils);
+importClass(Packages.org.apache.tuscany.container.rhino.integration.TestMethods);
+
+initSalutation();
+
+function getGreetings(name) {
+ return SALUTATION.getSalutation() + " " + name;
+}
+
+function initSalutation() {
+ SALUTATION = new TestMethods();
+}
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType
new file mode 100644
index 0000000000..1c819bff32
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="SalutationService">
+ <interface.java interface="org.apache.tuscany.container.rhino.integration.Salutation"/>
+ </service>
+
+ <property name="GREETING" type="xsd:string" default="Hi"/>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js
new file mode 100644
index 0000000000..2116e40ae3
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js
@@ -0,0 +1,20 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+function getSalutation() {
+ return GREETING;
+}
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType
new file mode 100644
index 0000000000..6bf89d2ef8
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.wsdl interface="http://integration.rhino.container.tuscany.apache.org#HelloWorld"/>
+ </service>
+
+</componentType> \ No newline at end of file
diff --git a/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js
new file mode 100644
index 0000000000..7fe882df55
--- /dev/null
+++ b/sca-java-1.x/tags/java-M1-final/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js
@@ -0,0 +1,28 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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.
+ */
+
+function process(xmlIn) {
+
+ var greeting = "e4xHello " + xmlIn..*::in0;
+
+ var xmlOut =
+ <helloworld:getGreetingsResponse xmlns:helloworld="http://integration.rhino.container.tuscany.apache.org">
+ <helloworld:getGreetingsReturn> { greeting } </helloworld:getGreetingsReturn>
+ </helloworld:getGreetingsResponse>;
+
+ return xmlOut;
+}