summaryrefslogtreecommitdiffstats
path: root/java/sca/modules
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/modules')
-rw-r--r--java/sca/modules/extensibility-osgi/src/test/java/org/apache/tuscany/sca/extensibility/osgi/OSGiServiceDiscovererTestCase.java6
-rw-r--r--java/sca/modules/extensibility-osgi/src/test/resources/test-bundle.jarbin11920 -> 1797 bytes
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
index 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
Binary files differ