From e1539a531da3192dac843520d77c8c76e407a402 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:55:07 +0000 Subject: Moving 1.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882849 13f79535-47bb-0310-9956-ffa450edef68 --- .../resources/tests/HelloWorldImpl1.componentType | 9 +++++++ .../src/test/resources/tests/HelloWorldImpl1.js | 20 +++++++++++++++ .../resources/tests/HelloWorldImpl2.componentType | 11 ++++++++ .../src/test/resources/tests/HelloWorldImpl2.js | 20 +++++++++++++++ .../resources/tests/HelloWorldImpl3a.componentType | 13 ++++++++++ .../src/test/resources/tests/HelloWorldImpl3a.js | 20 +++++++++++++++ .../resources/tests/HelloWorldImpl4.componentType | 9 +++++++ .../src/test/resources/tests/HelloWorldImpl4.js | 26 +++++++++++++++++++ .../resources/tests/HelloWorldImpl5.componentType | 9 +++++++ .../src/test/resources/tests/HelloWorldImpl5.js | 29 ++++++++++++++++++++++ .../resources/tests/SalutationImpl.componentType | 11 ++++++++ .../src/test/resources/tests/SalutationImpl.js | 20 +++++++++++++++ .../src/test/resources/tests/e4x.componentType | 9 +++++++ .../src/test/resources/tests/e4x.js | 28 +++++++++++++++++++++ 14 files changed, 234 insertions(+) create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType create mode 100644 sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js (limited to 'sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests') diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.componentType @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl1.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.componentType @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl2.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.componentType @@ -0,0 +1,13 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl3a.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.componentType @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl4.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.componentType @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/HelloWorldImpl5.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.componentType @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/SalutationImpl.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType b/sca-java-1.x/tags/java-M1-20060522/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-20060522/java/sca/containers/container.rhino/src/test/resources/tests/e4x.componentType @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/sca-java-1.x/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/resources/tests/e4x.js b/sca-java-1.x/tags/java-M1-20060522/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-20060522/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 = + + { greeting } + ; + + return xmlOut; +} -- cgit v1.2.3