X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=inline;f=runtime%2Forg.argeo.slc.support.equinox%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fslc%2Fosgi%2Ftest%2FHelloTest.java;fp=runtime%2Forg.argeo.slc.support.equinox%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fslc%2Fosgi%2Ftest%2FHelloTest.java;h=668cc1d6c95bc890e2d753ec83fc30855c7e45c6;hb=7274972217cf5bb6772e8833c5723a5f9544ddb5;hp=0000000000000000000000000000000000000000;hpb=ad1e7520c60f57c597d89137505f1e31b6e643bd;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.equinox/src/test/java/org/argeo/slc/osgi/test/HelloTest.java b/runtime/org.argeo.slc.support.equinox/src/test/java/org/argeo/slc/osgi/test/HelloTest.java new file mode 100644 index 000000000..668cc1d6c --- /dev/null +++ b/runtime/org.argeo.slc.support.equinox/src/test/java/org/argeo/slc/osgi/test/HelloTest.java @@ -0,0 +1,23 @@ +package org.argeo.slc.osgi.test; + +import org.argeo.slc.osgiboot.OsgiBoot; + +public class HelloTest extends AbstractOsgiRuntimeTest { + public void testHello() throws Exception { + Thread.sleep(5000); + } + + protected void postStart() throws Exception { + osgiBoot.installUrls(osgiBoot.getLocationsUrls( + OsgiBoot.DEFAULT_BASE_URL, System + .getProperty("java.class.path"))); + osgiBoot.installUrls(osgiBoot.getBundlesUrls(OsgiBoot.DEFAULT_BASE_URL, + "src/test/bundles;in=*")); + + listInstalledBundles(); + String bundlesToStart = "org.springframework.osgi.extender,org.argeo.slc.support.osgi.test.hello"; + osgiBoot.startBundles(bundlesToStart); + + } + +}