diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 22:25:51 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-09 22:25:51 +0000 |
commit | 5e9a8c94ef8bf25a70d394eaf436f2197cfff260 (patch) | |
tree | a7d708f81e9cfe47c7f0c6b94c3a4460011a6ef5 /java/sca | |
parent | 8c7f53c15bf5b2dc64d96e1bee8b1f8cc632d48a (diff) |
Update the test case with a resolvable bundle
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@693638 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
2 files changed, 3 insertions, 3 deletions
diff --git a/java/sca/modules/extensibility-osgi/src/test/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscovererTestCase.java b/java/sca/modules/extensibility-osgi/src/test/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscovererTestCase.java index 472cfbc17c..aba7e62637 100644 --- a/java/sca/modules/extensibility-osgi/src/test/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscovererTestCase.java +++ b/java/sca/modules/extensibility-osgi/src/test/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscovererTestCase.java @@ -99,7 +99,7 @@ public class OSGiServiceDiscovererTestCase { @Test public void testDiscovery() { Set<ServiceDeclaration> descriptors = - discoverer.discover("org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory", false); + discoverer.discover("test.TestService", false); Assert.assertEquals(1, descriptors.size()); descriptors = discoverer.discover("notthere", false); Assert.assertEquals(0, descriptors.size()); @@ -108,7 +108,7 @@ public class OSGiServiceDiscovererTestCase { @Test public void testDiscoveryFirst() { Set<ServiceDeclaration> descriptors = - discoverer.discover("org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory", true); + discoverer.discover("test.TestService", true); Assert.assertEquals(1, descriptors.size()); descriptors = discoverer.discover("notthere", true); Assert.assertEquals(0, descriptors.size()); @@ -116,7 +116,7 @@ public class OSGiServiceDiscovererTestCase { @Test public void testClassLoader () throws IOException { - Enumeration<URL> resources = discoverer.getContextClassLoader().getResources("META-INF/services/org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory"); + Enumeration<URL> resources = discoverer.getContextClassLoader().getResources("META-INF/services/test.TestService"); List<URL> list = Collections.list(resources); Assert.assertEquals(1, list.size()); } diff --git a/java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jar b/java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jar Binary files differindex a4dc54170e..afee051f61 100644 --- a/java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jar +++ b/java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jar |