From 52cf4b8e3f99706027da5c1363292a2aae59d87d Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:23:01 +0000 Subject: Moving 2.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835152 13f79535-47bb-0310-9956-ffa450edef68 --- ...ontextClassLoaderServiceDiscovererTestCase.java | 81 -------------- .../DefaultExtensionPointRegistryTestCase.java | 58 ---------- .../DefaultUtilityExtensionPointTestCase.java | 118 --------------------- .../extensibility/ServiceDiscoveryTestCase.java | 87 --------------- .../sca/extensibility/ServiceHelperTestCase.java | 79 -------------- .../tuscany/sca/extensibility/test/DummyImpl.java | 31 ------ .../tuscany/sca/extensibility/test/Test2Impl.java | 103 ------------------ .../tuscany/sca/extensibility/test/TestImpl.java | 42 -------- .../sca/extensibility/test/TestInterface.java | 30 ------ ...he.tuscany.sca.extensibility.test.TestInterface | 19 ---- 10 files changed, 648 deletions(-) delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultExtensionPointRegistryTestCase.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultUtilityExtensionPointTestCase.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceDiscoveryTestCase.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceHelperTestCase.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/DummyImpl.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/Test2Impl.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestImpl.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestInterface.java delete mode 100644 tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/resources/META-INF/services/org.apache.tuscany.sca.extensibility.test.TestInterface (limited to 'tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test') diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java deleted file mode 100644 index c0aac21596..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ContextClassLoaderServiceDiscovererTestCase.java +++ /dev/null @@ -1,81 +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 org.apache.tuscany.sca.extensibility; - -import java.io.IOException; -import java.util.Collection; - -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * Test Case for ClasspathServiceDiscover - */ -public class ContextClassLoaderServiceDiscovererTestCase { - private static ContextClassLoaderServiceDiscoverer discover; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - discover = new ContextClassLoaderServiceDiscoverer(); - } - - @Test - public void testDiscovery() { - Collection discriptors = - discover.getServiceDeclarations("org.apache.tuscany.sca.core.ModuleActivatorExtensionPoint"); - Assert.assertEquals(1, discriptors.size()); - discriptors = - discover.getServiceDeclarations("notthere"); - Assert.assertEquals(0, discriptors.size()); - } - - @Test - public void testDiscoveryFirst() throws IOException { - ServiceDeclaration descriptor = - discover.getServiceDeclaration("org.apache.tuscany.sca.core.ModuleActivatorExtensionPoint"); - Assert.assertNotNull(descriptor); - descriptor = discover.getServiceDeclaration("notthere"); - Assert.assertNull(descriptor); - } - - @Test - public void testXPathFactory() { - Collection discriptors = discover.getServiceDeclarations("javax.xml.xpath.XPathFactory"); - if (!discriptors.isEmpty()) { - ServiceDeclaration d = discriptors.iterator().next(); - Assert.assertNotNull(d.getClassName()); - Assert.assertTrue(d.getAttributes().containsKey("class")); - } - } - - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDownAfterClass() throws Exception { - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultExtensionPointRegistryTestCase.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultExtensionPointRegistryTestCase.java deleted file mode 100644 index 9758cba3b4..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultExtensionPointRegistryTestCase.java +++ /dev/null @@ -1,58 +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 org.apache.tuscany.sca.extensibility; - -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertSame; - -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.junit.Before; -import org.junit.Test; - -public class DefaultExtensionPointRegistryTestCase { - private ExtensionPointRegistry registry; - - @Before - public void setUp() throws Exception { - registry = new DefaultExtensionPointRegistry(); - } - - @Test - public void testRegistry() { - MyExtensionPoint service = new MyExtensionPointImpl(); - registry.addExtensionPoint(service); - assertSame(service, registry.getExtensionPoint(MyExtensionPoint.class)); - registry.removeExtensionPoint(service); - assertNull(registry.getExtensionPoint(MyExtensionPoint.class)); - } - - public static interface MyExtensionPoint { - void doSomething(); - } - - private static class MyExtensionPointImpl implements MyExtensionPoint { - - public void doSomething() { - } - - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultUtilityExtensionPointTestCase.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultUtilityExtensionPointTestCase.java deleted file mode 100644 index 0a5f4d6442..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/DefaultUtilityExtensionPointTestCase.java +++ /dev/null @@ -1,118 +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 org.apache.tuscany.sca.extensibility; - - -import java.io.Serializable; - -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.DefaultUtilityExtensionPoint; -import org.apache.tuscany.sca.core.LifeCycleListener; -import org.apache.tuscany.sca.core.UtilityExtensionPoint; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * - */ -public class DefaultUtilityExtensionPointTestCase { - private static UtilityExtensionPoint ep; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - ep = new DefaultUtilityExtensionPoint(new DefaultExtensionPointRegistry()); - ep.start(); - } - - @Test - public void testGet() { - MyUtilityImpl my = new MyUtilityImpl(); - ep.addUtility(my); - Assert.assertTrue(my.started); - Utility1 u1 = ep.getUtility(Utility1.class); - Assert.assertSame(my, u1); - Utility2 u2 = ep.getUtility(Utility2.class); - Assert.assertSame(my, u2); - ep.removeUtility(my); - Assert.assertFalse(my.started); - u1 = ep.getUtility(Utility1.class); - Assert.assertNull(u1); - - ep.addUtility("1", my); - u1= ep.getUtility(Utility1.class); - Assert.assertNull(u1); - u1= ep.getUtility(Utility1.class, "1"); - Assert.assertNotNull(u1); - ep.removeUtility(my); - u1= ep.getUtility(Utility1.class, "1"); - Assert.assertNull(u1); - - u1 = ep.getUtility(MyUtilityImpl.class); - Assert.assertNotNull(u1); - u2 = ep.getUtility(Utility2.class); - Assert.assertSame(u1, u2); - ep.removeUtility(u1); - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDownAfterClass() throws Exception { - ep.stop(); - } - - public static interface Utility1 extends Serializable { - void op1(); - } - - public static interface Utility2 extends Serializable { - void op2(); - } - - public static class MyUtilityImpl implements Utility1, Utility2, LifeCycleListener { - public boolean started; - - public void start() { - System.out.println("start"); - started = true; - } - - public void stop() { - System.out.println("stop"); - started = false; - } - - public void op1() { - System.out.println("op1"); - } - - public void op2() { - System.out.println("op2"); - } - - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceDiscoveryTestCase.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceDiscoveryTestCase.java deleted file mode 100644 index 7a2f680d16..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceDiscoveryTestCase.java +++ /dev/null @@ -1,87 +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 org.apache.tuscany.sca.extensibility; - -import java.util.Collection; -import java.util.Iterator; - -import org.apache.tuscany.sca.extensibility.test.TestInterface; -import org.junit.Assert; -import org.junit.Test; - -/** - * - */ -public class ServiceDiscoveryTestCase { - private static final String NAME = "org.apache.tuscany.sca.extensibility.test.TestInterface"; - - @Test - public void testRanking() throws Exception { - ServiceDeclaration sd = ServiceDiscovery.getInstance().getServiceDeclaration(NAME); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.Test2Impl", sd.getClassName()); - - Collection sds = ServiceDiscovery.getInstance().getServiceDeclarations(NAME); - Assert.assertEquals(3, sds.size()); - - sds = ServiceDiscovery.getInstance().getServiceDeclarations(NAME, true); - Assert.assertEquals(3, sds.size()); - Iterator it = sds.iterator(); - ServiceDeclaration sd1 = it.next(); - ServiceDeclaration sd2 = it.next(); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.Test2Impl", sd1.getClassName()); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.TestImpl", sd2.getClassName()); - } - - @Test - public void testServiceType() throws Exception { - ServiceDeclaration sd = ServiceDiscovery.getInstance().getServiceDeclaration(TestInterface.class); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.Test2Impl", sd.getClassName()); - - Collection sds = ServiceDiscovery.getInstance().getServiceDeclarations(TestInterface.class); - Assert.assertEquals(2, sds.size()); - - sds = ServiceDiscovery.getInstance().getServiceDeclarations(TestInterface.class, true); - Assert.assertEquals(2, sds.size()); - Iterator it = sds.iterator(); - ServiceDeclaration sd1 = it.next(); - ServiceDeclaration sd2 = it.next(); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.Test2Impl", sd1.getClassName()); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.TestImpl", sd2.getClassName()); - } - - @Test - public void testFilter() throws Exception { - Collection sds = - ServiceDiscovery.getInstance().getServiceDeclarations(TestInterface.class, "(attr=abc)"); - - Assert.assertEquals(1, sds.size()); - - Iterator it = sds.iterator(); - ServiceDeclaration sd1 = it.next(); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.Test2Impl", sd1.getClassName()); - - sds = ServiceDiscovery.getInstance().getServiceDeclarations(TestInterface.class, "(attr=1*)"); - Assert.assertEquals(1, sds.size()); - it = sds.iterator(); - sd1 = it.next(); - Assert.assertEquals("org.apache.tuscany.sca.extensibility.test.TestImpl", sd1.getClassName()); - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceHelperTestCase.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceHelperTestCase.java deleted file mode 100644 index 7920fdf4f4..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/ServiceHelperTestCase.java +++ /dev/null @@ -1,79 +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 org.apache.tuscany.sca.extensibility; - -import java.lang.reflect.Proxy; -import java.util.Collection; -import java.util.Iterator; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.LifeCycleListener; -import org.apache.tuscany.sca.extensibility.test.Test2Impl; -import org.apache.tuscany.sca.extensibility.test.TestImpl; -import org.apache.tuscany.sca.extensibility.test.TestInterface; -import org.junit.Assert; -import org.junit.Test; - -public class ServiceHelperTestCase { - @Test - public void testNewInstance() throws Exception { - Test2Impl implA = ServiceHelper.newInstance(Test2Impl.class); - Assert.assertNull(implA.getRegistry()); - - TestImpl impl1 = ServiceHelper.newInstance(TestImpl.class); - Assert.assertNotNull(impl1); - } - - @Test - public void testNewInstance2() throws Exception { - Collection sds = - ServiceDiscovery.getInstance().getServiceDeclarations(TestInterface.class, true); - ExtensionPointRegistry registry = new DefaultExtensionPointRegistry(); - Iterator iterator = sds.iterator(); - Test2Impl implA = ServiceHelper.newInstance(registry, iterator.next()); - Assert.assertSame(registry, implA.getRegistry()); - - TestImpl impl1 = ServiceHelper.newInstance(registry, iterator.next()); - Assert.assertNotNull(impl1); - } - - @Test - public void testNewLazyInstance() throws Exception { - Collection sds = - ServiceDiscovery.getInstance().getServiceDeclarations(TestInterface.class, true); - ExtensionPointRegistry registry = new DefaultExtensionPointRegistry(); - Iterator iterator = sds.iterator(); - TestInterface ti = ServiceHelper.newLazyInstance(registry, iterator.next(), TestInterface.class); - Assert.assertTrue(Proxy.isProxyClass(ti.getClass())); - Assert.assertTrue(ti instanceof LifeCycleListener); - Assert.assertTrue(ti.toString().startsWith("Proxy")); - Assert.assertEquals(System.identityHashCode(ti), ti.hashCode()); - ServiceHelper.start(ti); - ServiceHelper.stop(ti); - QName name = ti.getArtifactType(); - Assert.assertEquals(new QName("http://sample", "Test2"), name); - String str = ti.test("ABC"); - Assert.assertEquals("Test 2: ABC", str); - ServiceHelper.stop(ti); - } -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/DummyImpl.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/DummyImpl.java deleted file mode 100644 index f1ed50c5f2..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/DummyImpl.java +++ /dev/null @@ -1,31 +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 org.apache.tuscany.sca.extensibility.test; - -/** - * - */ -public class DummyImpl { - - public void test(String str) { - System.out.println("Test: " + str); - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/Test2Impl.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/Test2Impl.java deleted file mode 100644 index 6a1ba4d7ba..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/Test2Impl.java +++ /dev/null @@ -1,103 +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 org.apache.tuscany.sca.extensibility.test; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.core.LifeCycleListener; - -/** - * - */ -public class Test2Impl implements TestInterface, LifeCycleListener { - private ExtensionPointRegistry registry; - public int state = 0; - - public Test2Impl(ExtensionPointRegistry registry) { - this.registry = registry; - } - - public Test2Impl() { - } - - /** - * @see org.apache.tuscany.sca.extensibility.test.TestInterface#test(java.lang.String) - */ - public String test(String str) { - System.out.println("Test 2: " + str); - return "Test 2: " + str; - } - - public ExtensionPointRegistry getRegistry() { - return registry; - } - - public void start() { - state = 1; - } - - public void stop() { - state = -1; - } - - public int getState() { - return state; - } - - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((registry == null) ? 0 : registry.hashCode()); - result = prime * result + state; - return result; - } - - @Override - public boolean equals(Object obj) { - if (this == obj) - return true; - if (obj == null) - return false; - if (getClass() != obj.getClass()) - return false; - Test2Impl other = (Test2Impl)obj; - if (registry == null) { - if (other.registry != null) - return false; - } else if (!registry.equals(other.registry)) - return false; - if (state != other.state) - return false; - return true; - } - - @Override - public String toString() { - return "Test2Impl [state=" + state + "]"; - } - - public QName getArtifactType() { - // TODO Auto-generated method stub - return new QName("http://sample", "Test2"); - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestImpl.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestImpl.java deleted file mode 100644 index 4def8a5227..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestImpl.java +++ /dev/null @@ -1,42 +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 org.apache.tuscany.sca.extensibility.test; - -import javax.xml.namespace.QName; - -/** - * - */ -public class TestImpl implements TestInterface { - - /* (non-Javadoc) - * @see org.apache.tuscany.sca.extensibility.test.TestInterface#test(java.lang.String) - */ - public String test(String str) { - System.out.println("Test: " + str); - return "Test: " + str; - } - - public QName getArtifactType() { - // TODO Auto-generated method stub - return null; - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestInterface.java b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestInterface.java deleted file mode 100644 index 2f0c34df7d..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/java/org/apache/tuscany/sca/extensibility/test/TestInterface.java +++ /dev/null @@ -1,30 +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 org.apache.tuscany.sca.extensibility.test; - -import javax.xml.namespace.QName; - -/** - * - */ -public interface TestInterface { - String test(String str); - QName getArtifactType(); -} diff --git a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/resources/META-INF/services/org.apache.tuscany.sca.extensibility.test.TestInterface b/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/resources/META-INF/services/org.apache.tuscany.sca.extensibility.test.TestInterface deleted file mode 100644 index 12991071e5..0000000000 --- a/tags/java/sca/2.0-M4-RC1/modules/extensibility/src/test/resources/META-INF/services/org.apache.tuscany.sca.extensibility.test.TestInterface +++ /dev/null @@ -1,19 +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. -org.apache.tuscany.sca.extensibility.test.TestImpl;ranking=10;attr=123 -org.apache.tuscany.sca.extensibility.test.Test2Impl;ranking=20,attr=abc,qname=http://sample#Test2,model=org.apache.tuscany.sca.extensibility.test.TestInterface -org.apache.tuscany.sca.extensibility.test.DummyImpl \ No newline at end of file -- cgit v1.2.3