summaryrefslogtreecommitdiffstats
path: root/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration')
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java46
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java27
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java29
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java26
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java33
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java33
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java25
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java27
-rw-r--r--tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java30
9 files changed, 0 insertions, 276 deletions
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java
deleted file mode 100644
index ee6b533ddf..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/AbstractJavaScriptTestCase.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.core.client.TuscanyRuntime;
-import org.osoa.sca.CurrentModuleContext;
-import org.osoa.sca.ModuleContext;
-
-/**
- * Integration tests for JavaScript components
- */
-public abstract class AbstractJavaScriptTestCase extends TestCase {
-
- protected TuscanyRuntime tuscany;
-
- protected ModuleContext moduleContext;
-
- @Override
- protected void setUp() throws Exception {
- super.setUp();
-
- tuscany = new TuscanyRuntime("tests", null);
- tuscany.start();
- moduleContext = CurrentModuleContext.getContext();
-
- }
-
- @Override
- protected void tearDown() throws Exception {
- super.tearDown();
- tuscany.stop();
- }
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java
deleted file mode 100644
index f66f2e1079..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/BasicTestCase.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- * Integration tests for JavaScript components
- */
-public class BasicTestCase extends AbstractJavaScriptTestCase {
-
- public void testBasicInvocation() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponent1");
- String response = helloworldService.getGreetings("petra");
- assertEquals("jsHello petra", response);
- }
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java
deleted file mode 100644
index d6060aea90..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/E4XTestCase.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- * Integration tests for JavaScript components and composite contexts
- *
- * @version $Rev$ $Date$
- */
-public class E4XTestCase extends AbstractJavaScriptTestCase {
-
- public void testE4X() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponentE4X");
- String response = helloworldService.getGreetings("petra");
- assertEquals("e4xHello petra", response);
- }
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java
deleted file mode 100644
index 3a90be0102..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/HelloWorld.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- * This is the business interface of the HelloWorld service component.
- */
-public interface HelloWorld {
-
- public String getGreetings(String name);
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java
deleted file mode 100644
index 138d9a8452..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/InitializationTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- * Integration tests for JavaScript components
- */
-public class InitializationTestCase extends AbstractJavaScriptTestCase {
-
- public void testInitialization() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponent4");
- String response = helloworldService.getGreetings("petra");
- assertEquals("Bonjour petra", response);
- }
-
- public void testImports1() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponent5");
- String response = helloworldService.getGreetings("petra");
- assertEquals("Kia ora petra", response);
- }
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java
deleted file mode 100644
index 7b14376dbe..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/PropertiesTestCase.java
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- * Integration tests for JavaScript components
- */
-public class PropertiesTestCase extends AbstractJavaScriptTestCase {
-
- public void testDefaultProperty() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponent2a");
- String response = helloworldService.getGreetings("petra");
- assertEquals("Hi petra", response);
- }
-
- public void testOverrideProperty() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponent2b");
- String response = helloworldService.getGreetings("petra");
- assertEquals("Guten Tag petra", response);
- }
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java
deleted file mode 100644
index 42d46c16d1..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/Salutation.java
+++ /dev/null
@@ -1,25 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- */
-public interface Salutation {
-
- public String getSalutation();
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java
deleted file mode 100644
index 27993c2b99..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/ServiceRefsTestCase.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-/**
- * Integration tests for JavaScript components
- */
-public class ServiceRefsTestCase extends AbstractJavaScriptTestCase {
-
- public void testServiceReference() throws Exception {
- HelloWorld helloworldService = (HelloWorld) moduleContext.locateService("HelloWorldComponent3a");
- String response = helloworldService.getGreetings("petra");
- assertEquals("Guten Tag petra", response);
- }
-
-}
diff --git a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java b/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java
deleted file mode 100644
index 327edd1cbb..0000000000
--- a/tags/java-M1-20060522/java/sca/containers/container.rhino/src/test/java/org/apache/tuscany/container/rhino/integration/TestMethods.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/**
- *
- * 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.
- */
-package org.apache.tuscany.container.rhino.integration;
-
-public class TestMethods {
-
- private String salutation = "Kia ora";
-
- public String getSalutation() {
- return salutation;
- }
-
- public void getSalutation(String s) {
- salutation = s;
- }
-}