From 61bc9db44a50cd6c07a790b41e559cdd119cb850 Mon Sep 17 00:00:00 2001 From: rfeng Date: Wed, 25 Mar 2009 06:18:08 +0000 Subject: Refactor the structure for test resources git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@758155 13f79535-47bb-0310-9956-ffa450edef68 --- .../dosgi/test/CalculatorOSGiNodeTestCase.java | 130 ++------------------ .../dosgi/test/CalculatorOSGiTestCase.java | 121 ++----------------- .../calculator/dosgi/test/OSGiTestBundles.java | 134 +++++++++++++++++++++ .../test/resources/META-INF/sca-contribution.xml | 24 ---- .../src/test/resources/OSGI-INF/add-component.xml | 25 ---- .../resources/OSGI-INF/calculator-component.xml | 36 ------ .../test/resources/OSGI-INF/divide-component.xml | 25 ---- .../test/resources/OSGI-INF/multiply-component.xml | 25 ---- .../calculator-service-descriptions.xml | 65 ---------- .../test/resources/OSGI-INF/subtract-component.xml | 25 ---- .../calculator/dosgi/META-INF/sca-contribution.xml | 24 ++++ .../dosgi/operations/META-INF/sca-contribution.xml | 23 ++++ 12 files changed, 199 insertions(+), 458 deletions(-) delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/add-component.xml delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/calculator-component.xml delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/divide-component.xml delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/multiply-component.xml delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/remote-service/calculator-service-descriptions.xml delete mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/subtract-component.xml create mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/META-INF/sca-contribution.xml create mode 100644 java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/META-INF/sca-contribution.xml (limited to 'java') diff --git a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java index bda8b0bdbb..06ad78d7a5 100644 --- a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java +++ b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiNodeTestCase.java @@ -19,9 +19,10 @@ package calculator.dosgi.test; -import java.lang.reflect.InvocationHandler; -import java.lang.reflect.Method; -import java.lang.reflect.Proxy; +import static calculator.dosgi.test.OSGiTestBundles.generateCalculatorBundle; +import static calculator.dosgi.test.OSGiTestBundles.generateOperationsBundle; +import static calculator.dosgi.test.OSGiTestBundles.bundleStatus; + import java.net.URL; import java.security.AccessController; import java.security.PrivilegedAction; @@ -37,19 +38,7 @@ import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; -import calculator.dosgi.CalculatorActivator; import calculator.dosgi.CalculatorService; -import calculator.dosgi.CalculatorServiceDSImpl; -import calculator.dosgi.CalculatorServiceImpl; -import calculator.dosgi.operations.AddService; -import calculator.dosgi.operations.AddServiceImpl; -import calculator.dosgi.operations.DivideService; -import calculator.dosgi.operations.DivideServiceImpl; -import calculator.dosgi.operations.MultiplyService; -import calculator.dosgi.operations.MultiplyServiceImpl; -import calculator.dosgi.operations.OperationsActivator; -import calculator.dosgi.operations.SubtractService; -import calculator.dosgi.operations.SubtractServiceImpl; /** * @@ -81,49 +70,12 @@ public class CalculatorOSGiNodeTestCase { if (client == null || client.booleanValue()) { System.out.println("Generating calculator.dosgi bundle..."); - bundles.add(OSGiTestBundles.createBundle("target/test-classes/calculator-bundle.jar", - "calculator/dosgi/META-INF/MANIFEST.MF", - new String[][] { - {"OSGI-INF/remote-service/calculator-service-descriptions.xml"}, - {"OSGI-INF/calculator-component.xml"}, - {"calculator/dosgi/bundle.componentType", - "OSGI-INF/sca/bundle.componentType"}, - {"calculator/dosgi/calculator.composite", - "OSGI-INF/sca/bundle.composite"}}, - CalculatorService.class, - // Package the interfaces so that the operations bundle can be remote - AddService.class, - SubtractService.class, - MultiplyService.class, - DivideService.class, - CalculatorServiceImpl.class, - CalculatorServiceDSImpl.class, - CalculatorActivator.class)); + bundles.add(generateCalculatorBundle()); } if (client == null || !client.booleanValue()) { System.out.println("Generating calculator.dosgi.operations bundle..."); - bundles.add(OSGiTestBundles - .createBundle("target/test-classes/operations-bundle.jar", - "calculator/dosgi/operations/META-INF/MANIFEST.MF", - new String[][] { - {"OSGI-INF/add-component.xml"}, - {"OSGI-INF/subtract-component.xml"}, - {"OSGI-INF/multiply-component.xml"}, - {"OSGI-INF/divide-component.xml"}, - {"calculator/dosgi/operations/bundle.componentType", - "OSGI-INF/sca/bundle.componentType"}, - {"calculator/dosgi/operations/operations.composite", - "OSGI-INF/sca/bundle.composite"}}, - OperationsActivator.class, - AddService.class, - AddServiceImpl.class, - SubtractService.class, - SubtractServiceImpl.class, - MultiplyService.class, - MultiplyServiceImpl.class, - DivideService.class, - DivideServiceImpl.class)); + bundles.add(generateOperationsBundle()); } host = new EquinoxHost(); context = host.start(); @@ -136,16 +88,16 @@ public class CalculatorOSGiNodeTestCase { try { b.start(); } catch (Exception e) { - System.out.println(string(b, false)); + System.out.println(bundleStatus(b, false)); e.printStackTrace(); } - System.out.println(string(b, false)); + System.out.println(bundleStatus(b, false)); } } for (Bundle b : context.getBundles()) { if (b.getSymbolicName().startsWith("calculator.dosgi")) { b.start(); - System.out.println(string(b, false)); + System.out.println(bundleStatus(b, false)); } } } catch (Exception e) { @@ -154,31 +106,6 @@ public class CalculatorOSGiNodeTestCase { } } - private static T cast(Object obj, Class cls) { - if (cls.isInstance(obj)) { - return cls.cast(obj); - } else { - return cls.cast(Proxy.newProxyInstance(cls.getClassLoader(), - new Class[] {cls}, - new InvocationHandlerImpl(obj))); - } - } - - private static class InvocationHandlerImpl implements InvocationHandler { - private Object instance; - - public InvocationHandlerImpl(Object instance) { - super(); - this.instance = instance; - } - - public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { - Method m = instance.getClass().getMethod(method.getName(), method.getParameterTypes()); - return m.invoke(instance, args); - } - - } - @Test public void testOSGi() { if (client == null || client.booleanValue()) { @@ -186,7 +113,7 @@ public class CalculatorOSGiNodeTestCase { Assert.assertNotNull(ref); Object service = context.getService(ref); Assert.assertNotNull(service); - CalculatorService calculator = cast(service, CalculatorService.class); + CalculatorService calculator = OSGiTestBundles.cast(service, CalculatorService.class); System.out.println("2.0 + 1.0 = " + calculator.add(2.0, 1.0)); System.out.println("2.0 - 1.0 = " + calculator.subtract(2.0, 1.0)); System.out.println("2.0 * 1.0 = " + calculator.multiply(2.0, 1.0)); @@ -194,43 +121,6 @@ public class CalculatorOSGiNodeTestCase { } } - /** - * Returns a string representation of the given bundle. - * - * @param b - * @param verbose - * @return - */ - static String string(Bundle bundle, boolean verbose) { - StringBuffer sb = new StringBuffer(); - sb.append(bundle.getBundleId()).append(" ").append(bundle.getSymbolicName()); - int s = bundle.getState(); - if ((s & Bundle.UNINSTALLED) != 0) { - sb.append(" UNINSTALLED"); - } - if ((s & Bundle.INSTALLED) != 0) { - sb.append(" INSTALLED"); - } - if ((s & Bundle.RESOLVED) != 0) { - sb.append(" RESOLVED"); - } - if ((s & Bundle.STARTING) != 0) { - sb.append(" STARTING"); - } - if ((s & Bundle.STOPPING) != 0) { - sb.append(" STOPPING"); - } - if ((s & Bundle.ACTIVE) != 0) { - sb.append(" ACTIVE"); - } - - if (verbose) { - sb.append(" ").append(bundle.getLocation()); - sb.append(" ").append(bundle.getHeaders()); - } - return sb.toString(); - } - /** * @throws java.lang.Exception */ diff --git a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java index 18d762638d..c77aa8e569 100644 --- a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java +++ b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/CalculatorOSGiTestCase.java @@ -19,9 +19,8 @@ package calculator.dosgi.test; -import java.lang.reflect.InvocationHandler; -import java.lang.reflect.Method; -import java.lang.reflect.Proxy; +import static calculator.dosgi.test.OSGiTestBundles.bundleStatus; + import java.net.URL; import java.util.HashSet; import java.util.Set; @@ -34,19 +33,7 @@ import org.osgi.framework.Bundle; import org.osgi.framework.BundleContext; import org.osgi.framework.ServiceReference; -import calculator.dosgi.CalculatorActivator; import calculator.dosgi.CalculatorService; -import calculator.dosgi.CalculatorServiceDSImpl; -import calculator.dosgi.CalculatorServiceImpl; -import calculator.dosgi.operations.AddService; -import calculator.dosgi.operations.AddServiceImpl; -import calculator.dosgi.operations.DivideService; -import calculator.dosgi.operations.DivideServiceImpl; -import calculator.dosgi.operations.MultiplyService; -import calculator.dosgi.operations.MultiplyServiceImpl; -import calculator.dosgi.operations.OperationsActivator; -import calculator.dosgi.operations.SubtractService; -import calculator.dosgi.operations.SubtractServiceImpl; /** * @@ -61,39 +48,9 @@ public class CalculatorOSGiTestCase { public static void setUpBeforeClass() throws Exception { Set bundles = new HashSet(); - bundles.add(OSGiTestBundles.createBundle("target/test-classes/calculator-bundle.jar", - "calculator/dosgi/META-INF/MANIFEST.MF", - new String[][] { - {"OSGI-INF/calculator-component.xml"}, - {"calculator/dosgi/bundle.componentType", - "OSGI-INF/sca/bundle.componentType"}, - {"calculator/dosgi/calculator.composite", - "OSGI-INF/sca/bundle.composite"}}, - CalculatorService.class, - CalculatorServiceImpl.class, - CalculatorServiceDSImpl.class, - CalculatorActivator.class)); + bundles.add(OSGiTestBundles.generateCalculatorBundle()); - bundles.add(OSGiTestBundles.createBundle("target/test-classes/operations-bundle.jar", - "calculator/dosgi/operations/META-INF/MANIFEST.MF", - new String[][] { - {"OSGI-INF/add-component.xml"}, - {"OSGI-INF/subtract-component.xml"}, - {"OSGI-INF/multiply-component.xml"}, - {"OSGI-INF/divide-component.xml"}, - {"calculator/dosgi/operations/bundle.componentType", - "OSGI-INF/sca/bundle.componentType"}, - {"calculator/dosgi/operations/operations.composite", - "OSGI-INF/sca/bundle.composite"}}, - OperationsActivator.class, - AddService.class, - AddServiceImpl.class, - SubtractService.class, - SubtractServiceImpl.class, - MultiplyService.class, - MultiplyServiceImpl.class, - DivideService.class, - DivideServiceImpl.class)); + bundles.add(OSGiTestBundles.generateOperationsBundle()); try { host = new EquinoxHost(); BundleContext context = host.start(); @@ -102,15 +59,15 @@ public class CalculatorOSGiTestCase { } for (Bundle b : context.getBundles()) { if (b.getSymbolicName().equals("org.eclipse.equinox.ds")) { - System.out.println(string(b, false)); + System.out.println(bundleStatus(b, false)); b.start(); - System.out.println(string(b, false)); + System.out.println(bundleStatus(b, false)); } } for (Bundle b : context.getBundles()) { if (b.getSymbolicName().startsWith("calculator.dosgi")) { b.start(); - System.out.println(string(b, false)); + System.out.println(bundleStatus(b, false)); } } @@ -120,7 +77,7 @@ public class CalculatorOSGiTestCase { String filter = "(component.name=CalculatorComponent)"; System.out.println(filter); ServiceReference ref = context.getServiceReferences(CalculatorService.class.getName(), filter)[0]; - CalculatorService calculator = cast(context.getService(ref), CalculatorService.class); + CalculatorService calculator = OSGiTestBundles.cast(context.getService(ref), CalculatorService.class); System.out.println("2.0 + 1.0 = " + calculator.add(2.0, 1.0)); System.out.println("2.0 - 1.0 = " + calculator.subtract(2.0, 1.0)); System.out.println("2.0 * 1.0 = " + calculator.multiply(2.0, 1.0)); @@ -131,73 +88,11 @@ public class CalculatorOSGiTestCase { } } - private static T cast(Object obj, Class cls) { - if (cls.isInstance(obj)) { - return cls.cast(obj); - } else { - return cls.cast(Proxy.newProxyInstance(cls.getClassLoader(), - new Class[] {cls}, - new InvocationHandlerImpl(obj))); - } - } - - private static class InvocationHandlerImpl implements InvocationHandler { - private Object instance; - - public InvocationHandlerImpl(Object instance) { - super(); - this.instance = instance; - } - - public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { - Method m = instance.getClass().getMethod(method.getName(), method.getParameterTypes()); - return m.invoke(instance, args); - } - - } - @Test public void testOSGi() { } - /** - * Returns a string representation of the given bundle. - * - * @param b - * @param verbose - * @return - */ - static String string(Bundle bundle, boolean verbose) { - StringBuffer sb = new StringBuffer(); - sb.append(bundle.getBundleId()).append(" ").append(bundle.getSymbolicName()); - int s = bundle.getState(); - if ((s & Bundle.UNINSTALLED) != 0) { - sb.append(" UNINSTALLED"); - } - if ((s & Bundle.INSTALLED) != 0) { - sb.append(" INSTALLED"); - } - if ((s & Bundle.RESOLVED) != 0) { - sb.append(" RESOLVED"); - } - if ((s & Bundle.STARTING) != 0) { - sb.append(" STARTING"); - } - if ((s & Bundle.STOPPING) != 0) { - sb.append(" STOPPING"); - } - if ((s & Bundle.ACTIVE) != 0) { - sb.append(" ACTIVE"); - } - - if (verbose) { - sb.append(" ").append(bundle.getLocation()); - sb.append(" ").append(bundle.getHeaders()); - } - return sb.toString(); - } - /** * @throws java.lang.Exception */ diff --git a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/OSGiTestBundles.java b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/OSGiTestBundles.java index 6898ce30f9..610a0473e6 100644 --- a/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/OSGiTestBundles.java +++ b/java/sca/modules/node-impl-osgi/src/test/java/calculator/dosgi/test/OSGiTestBundles.java @@ -26,6 +26,9 @@ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; +import java.lang.reflect.InvocationHandler; +import java.lang.reflect.Method; +import java.lang.reflect.Proxy; import java.net.URL; import java.util.HashSet; import java.util.Set; @@ -33,9 +36,24 @@ import java.util.jar.JarOutputStream; import java.util.jar.Manifest; import java.util.zip.ZipEntry; +import org.osgi.framework.Bundle; import org.osgi.framework.BundleActivator; import org.osgi.framework.Constants; +import calculator.dosgi.CalculatorActivator; +import calculator.dosgi.CalculatorService; +import calculator.dosgi.CalculatorServiceDSImpl; +import calculator.dosgi.CalculatorServiceImpl; +import calculator.dosgi.operations.AddService; +import calculator.dosgi.operations.AddServiceImpl; +import calculator.dosgi.operations.DivideService; +import calculator.dosgi.operations.DivideServiceImpl; +import calculator.dosgi.operations.MultiplyService; +import calculator.dosgi.operations.MultiplyServiceImpl; +import calculator.dosgi.operations.OperationsActivator; +import calculator.dosgi.operations.SubtractService; +import calculator.dosgi.operations.SubtractServiceImpl; + /** * * Utility class to create OSGi bundles @@ -43,6 +61,21 @@ import org.osgi.framework.Constants; * @version $Rev$ $Date$ */ public class OSGiTestBundles { + private static class InvocationHandlerImpl implements InvocationHandler { + private Object instance; + + public InvocationHandlerImpl(Object instance) { + super(); + this.instance = instance; + } + + public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { + Method m = instance.getClass().getMethod(method.getName(), method.getParameterTypes()); + return m.invoke(instance, args); + } + + } + private static String getPackageName(Class cls) { String name = cls.getName(); int index = name.lastIndexOf('.'); @@ -184,4 +217,105 @@ public class OSGiTestBundles { jarOut.write(fileContents); jarOut.closeEntry(); } + + static URL generateCalculatorBundle() throws IOException { + return createBundle("target/test-classes/calculator-bundle.jar", + "calculator/dosgi/META-INF/MANIFEST.MF", + new String[][] { + { + "calculator/dosgi/OSGI-INF/remote-service/calculator-service-descriptions.xml", + "OSGI-INF/remote-service/calculator-service-descriptions.xml"}, + {"calculator/dosgi/OSGI-INF/calculator-component.xml", + "OSGI-INF/calculator-component.xml"}, + {"calculator/dosgi/bundle.componentType", + "OSGI-INF/sca/bundle.componentType"}, + {"calculator/dosgi/calculator.composite", "OSGI-INF/sca/bundle.composite"}, + {"calculator/dosgi/META-INF/sca-contribution.xml", + "META-INF/sca-contribution.xml"}}, + CalculatorService.class, + // Package the interfaces so that the operations bundle can be remote + AddService.class, + SubtractService.class, + MultiplyService.class, + DivideService.class, + CalculatorServiceImpl.class, + CalculatorServiceDSImpl.class, + CalculatorActivator.class); + } + + static URL generateOperationsBundle() throws IOException { + return createBundle("target/test-classes/operations-bundle.jar", + "calculator/dosgi/operations/META-INF/MANIFEST.MF", + new String[][] { + {"calculator/dosgi/operations/OSGI-INF/add-component.xml", + "OSGI-INF/add-component.xml"}, + {"calculator/dosgi/operations/OSGI-INF/subtract-component.xml", + "OSGI-INF/subtract-component.xml"}, + {"calculator/dosgi/operations/OSGI-INF/multiply-component.xml", + "OSGI-INF/multiply-component.xml"}, + {"calculator/dosgi/operations/OSGI-INF/divide-component.xml", + "OSGI-INF/divide-component.xml"}, + {"calculator/dosgi/operations/bundle.componentType", + "OSGI-INF/sca/bundle.componentType"}, + {"calculator/dosgi/operations/operations.composite", + "OSGI-INF/sca/bundle.composite"}, + {"calculator/dosgi/operations/META-INF/sca-contribution.xml", + "META-INF/sca-contribution.xml"}}, + OperationsActivator.class, + AddService.class, + AddServiceImpl.class, + SubtractService.class, + SubtractServiceImpl.class, + MultiplyService.class, + MultiplyServiceImpl.class, + DivideService.class, + DivideServiceImpl.class); + } + + /** + * Returns a string representation of the given bundle. + * + * @param b + * @param verbose + * @return + */ + static String bundleStatus(Bundle bundle, boolean verbose) { + StringBuffer sb = new StringBuffer(); + sb.append(bundle.getBundleId()).append(" ").append(bundle.getSymbolicName()); + int s = bundle.getState(); + if ((s & Bundle.UNINSTALLED) != 0) { + sb.append(" UNINSTALLED"); + } + if ((s & Bundle.INSTALLED) != 0) { + sb.append(" INSTALLED"); + } + if ((s & Bundle.RESOLVED) != 0) { + sb.append(" RESOLVED"); + } + if ((s & Bundle.STARTING) != 0) { + sb.append(" STARTING"); + } + if ((s & Bundle.STOPPING) != 0) { + sb.append(" STOPPING"); + } + if ((s & Bundle.ACTIVE) != 0) { + sb.append(" ACTIVE"); + } + + if (verbose) { + sb.append(" ").append(bundle.getLocation()); + sb.append(" ").append(bundle.getHeaders()); + } + return sb.toString(); + } + + static T cast(Object obj, Class cls) { + if (cls.isInstance(obj)) { + return cls.cast(obj); + } else { + return cls.cast(Proxy.newProxyInstance(cls.getClassLoader(), + new Class[] {cls}, + new InvocationHandlerImpl(obj))); + } + } } diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/META-INF/sca-contribution.xml b/java/sca/modules/node-impl-osgi/src/test/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 1149eb5cbf..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/add-component.xml b/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/add-component.xml deleted file mode 100644 index a7d563023c..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/add-component.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/calculator-component.xml b/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/calculator-component.xml deleted file mode 100644 index 3e537df732..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/calculator-component.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/divide-component.xml b/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/divide-component.xml deleted file mode 100644 index def7fce23c..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/divide-component.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/multiply-component.xml b/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/multiply-component.xml deleted file mode 100644 index 57f627f990..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/multiply-component.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/remote-service/calculator-service-descriptions.xml b/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/remote-service/calculator-service-descriptions.xml deleted file mode 100644 index 25e96fe490..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/remote-service/calculator-service-descriptions.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - sca:SOAP sca:HTTP - sca - - OSGI-INF/sca/bundle.componentType - - - addService - - - - - sca:SOAP sca:HTTP - sca - - OSGI-INF/sca/bundle.componentType - - - subtractService - - - - - sca:SOAP sca:HTTP - sca - - OSGI-INF/sca/bundle.componentType - - - multiplyService - - - - - sca:SOAP sca:HTTP - sca - - OSGI-INF/sca/bundle.componentType - - - divideService - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/subtract-component.xml b/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/subtract-component.xml deleted file mode 100644 index 073ee5ea40..0000000000 --- a/java/sca/modules/node-impl-osgi/src/test/resources/OSGI-INF/subtract-component.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/META-INF/sca-contribution.xml b/java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..b14b3516f6 --- /dev/null +++ b/java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + diff --git a/java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/META-INF/sca-contribution.xml b/java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..16a33f4f65 --- /dev/null +++ b/java/sca/modules/node-impl-osgi/src/test/resources/calculator/dosgi/operations/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + -- cgit v1.2.3