diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-12 16:45:15 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-12 16:45:15 +0000 |
commit | 543123a87ba13d49f7880bdb89e2d33c9835ffa2 (patch) | |
tree | 5142648a34cfe5e4eb081bf6f1acda3e77898a7c /java/sca/modules/implementation-osgi/src/test/java | |
parent | 5f30d71d591702f1103c09d67b4dd9db63ca63bb (diff) |
Add/Fix some of the composite files
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@752928 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-osgi/src/test/java')
-rw-r--r-- | java/sca/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/java/sca/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java b/java/sca/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java index 7e9433751e..8a6e04807f 100644 --- a/java/sca/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java +++ b/java/sca/modules/implementation-osgi/src/test/java/org/apache/tuscany/sca/implementation/osgi/xml/OSGiReadImplTestCase.java @@ -71,7 +71,7 @@ public class OSGiReadImplTestCase { .getCompositeBuilder("org.apache.tuscany.sca.assembly.builder.CompositeBuilder"); OSGiTestBundles.createBundle("target/test-classes/OSGiTestService.jar", - OSGiTestInterface.class.getName(), + "osgi.test", null, null, (String[]) null, @@ -127,9 +127,9 @@ public class OSGiReadImplTestCase { public void testReadOSGiImplementation() throws Exception { String str = - "<?xml version=\"1.0\" encoding=\"ASCII\"?>" + "<implementation.osgi xmlns=\"http://tuscany.apache.org/xmlns/sca/1.1\" targetNamespace=\"http://osgi\" " - + "bundleSymbolicName=\"OSGiTestService\" " - + "bundleVersion=\"2.0.0\" " + "<?xml version=\"1.0\" encoding=\"ASCII\"?>" + "<implementation.osgi xmlns=\"http://tuscany.apache.org/xmlns/sca/1.1\" targetNamespace=\"http://test\" " + + "bundleSymbolicName=\"osgi.test\" " + + "bundleVersion=\"1.0.0\" " + "/>"; ByteArrayInputStream is = new ByteArrayInputStream(str.getBytes()); @@ -138,8 +138,8 @@ public class OSGiReadImplTestCase { OSGiImplementation osgiImpl = (OSGiImplementation)staxProcessor.read(reader); - assertEquals(osgiImpl.getBundleSymbolicName(), "OSGiTestService"); - assertEquals(osgiImpl.getBundleVersion(), "2.0.0"); + assertEquals(osgiImpl.getBundleSymbolicName(), "osgi.test"); + assertEquals(osgiImpl.getBundleVersion(), "1.0.0"); } } |