From 5e9a8c94ef8bf25a70d394eaf436f2197cfff260 Mon Sep 17 00:00:00 2001 From: rfeng Date: Tue, 9 Sep 2008 22:25:51 +0000 Subject: 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 --- .../osgi/OSGiServiceDiscovererTestCase.java | 6 +++--- .../src/test/resources/test-bundle.jar | Bin 11920 -> 1797 bytes 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'java/sca/modules') 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 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 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 resources = discoverer.getContextClassLoader().getResources("META-INF/services/org.apache.tuscany.sca.endpointresolver.EndpointResolverFactory"); + Enumeration resources = discoverer.getContextClassLoader().getResources("META-INF/services/test.TestService"); List 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 index a4dc54170e..afee051f61 100644 Binary files a/java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jar and b/java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jar differ -- cgit v1.2.3