From ce1eecbb3f5e58338b4cbfb16e8b2d37f41e8a87 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 16 Mar 2009 08:46:40 +0000 Subject: Delete some old RC tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@754846 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/java/hello/Hello.java | 29 ------ .../src/test/java/hello/HelloImpl.java | 33 ------ .../src/test/java/helloworld/HelloWorldImpl.java | 38 ------- .../test/java/helloworld/HelloWorldService.java | 29 ------ .../src/test/java/test/ContributionTestCase.java | 116 --------------------- .../META-INF/sca-contribution.xml | 25 ----- .../resources/contribution-export/hello.composite | 31 ------ .../META-INF/sca-contribution.xml | 26 ----- .../helloworld_one.composite | 35 ------- 9 files changed, 362 deletions(-) delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/Hello.java delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/HelloImpl.java delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml delete mode 100644 tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite (limited to 'tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src') diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/Hello.java b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/Hello.java deleted file mode 100644 index 313a58a0bf..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/Hello.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 hello; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the Hello service. - */ -public interface Hello { - - public String getGreetings(String name); -} diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/HelloImpl.java b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/HelloImpl.java deleted file mode 100644 index ff9f6e75f3..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/hello/HelloImpl.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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 hello; - -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(Hello.class) -public class HelloImpl implements Hello { - - public String getGreetings(String name) { - return "Hello " + name; - } - -} diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index c062afaed0..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 helloworld; - -import hello.Hello; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -/** - * This class implements the HelloWorld service. - */ -@Service(HelloWorldService.class) -public class HelloWorldImpl implements HelloWorldService { - @Reference - protected Hello helloServiceRef; - - public String getGreetings(String name) { - return helloServiceRef.getGreetings(name); - } - -} diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java deleted file mode 100644 index a84a578344..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 helloworld; - -import org.osoa.sca.annotations.Remotable; - -/** - * This is the business interface of the HelloWorld greetings service. - */ -public interface HelloWorldService { - - public String getGreetings(String name); -} diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java deleted file mode 100644 index 9f0e5f9854..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/java/test/ContributionTestCase.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * 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 test; - -import helloworld.HelloWorldService; - -import java.io.IOException; -import java.net.URL; - -import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.Contribution; -import org.apache.tuscany.sca.contribution.service.ContributionService; -import org.apache.tuscany.sca.host.embedded.impl.EmbeddedSCADomain; - -import junit.framework.TestCase; - -/** - * Test multiple contributio scenario - * Contributed by TUSCANY-1756 - */ -public class ContributionTestCase extends TestCase { - - private String helloContribution_dir = "target/test-classes/contribution-export"; - private String helloWorldContribution_one_dir = "target/test-classes/contribution-import-one"; - - private ClassLoader cl; - private EmbeddedSCADomain domain; - private Contribution helloContribution; - private Contribution helloWorldContribution_one; - - protected void setUp() throws Exception { - URL helloContribution_URL = new java.io.File(helloContribution_dir).toURL(); - URL helloWorldContribution_one_URL = new java.io.File(helloWorldContribution_one_dir).toURL(); - - // Create a test embedded SCA domain - cl = getClass().getClassLoader(); - domain = new EmbeddedSCADomain(cl, "http://localhost"); - - // Start the domain - domain.start(); - - // Contribute the SCA contribution - ContributionService contributionService = domain.getContributionService(); - - helloContribution = - contributionService.contribute("http://import-export/export-composite", helloContribution_URL, false); - - for (Composite deployable : helloContribution.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.getCompositeBuilder().build(deployable); - } - for (Composite deployable : helloContribution.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - - helloWorldContribution_one = - contributionService.contribute("http://import-export/helloworld_one", helloWorldContribution_one_URL, false); - for (Composite deployable : helloWorldContribution_one.getDeployables()) { - domain.getDomainComposite().getIncludes().add(deployable); - domain.getCompositeBuilder().build(deployable); - } - - for (Composite deployable : helloWorldContribution_one.getDeployables()) { - domain.getCompositeActivator().activate(deployable); - domain.getCompositeActivator().start(deployable); - } - - } - - public void testServiceCall() throws IOException { - HelloWorldService helloWorldService_one = - domain.getService(HelloWorldService.class, "HelloWorldServiceComponent_one/HelloWorldService"); - assertNotNull(helloWorldService_one); - - assertEquals("Hello Smith", helloWorldService_one.getGreetings("Smith")); - - } - - public void tearDown() throws Exception { - ContributionService contributionService = domain.getContributionService(); - - // Remove the contribution from the in-memory repository - contributionService.remove("http://import-export/export-composite"); - contributionService.remove("http://import-export/helloworld_one"); - - // Stop Components from my composite - for (Composite deployable : helloWorldContribution_one.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - for (Composite deployable : helloContribution.getDeployables()) { - domain.getCompositeActivator().stop(deployable); - domain.getCompositeActivator().deactivate(deployable); - } - // domain.stop(); - domain.close(); - } - -} diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml deleted file mode 100644 index bea6f39932..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite deleted file mode 100644 index aeeab337fa..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-export/hello.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml deleted file mode 100644 index bfbf74373a..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite b/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite deleted file mode 100644 index 45cb504ea4..0000000000 --- a/tags/java/sca/1.0.1-RC5a/itest/contribution-multiple/src/test/resources/contribution-import-one/helloworld_one.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - -- cgit v1.2.3