109110111112113114115116117118119
HelloWorld hw = getOsgiService(HelloWorld.class); String result = hw.getMessage(); assertEquals (result, "hello world"); ctx.stop(); manager.uninstall(ctx); } @org.ops4j.pax.exam.junit.Configuration public static Option[] configuration() {
257258259260261262263264265266267
Set<Bundle> bundles = ctx.getApplicationContent(); assertEquals("Number of bundles provisioned in the app", 4, bundles.size()); ctx.stop(); manager.uninstall(ctx); } @Test public void testRequireBundleResolve() throws Exception {
112113114115116117118119120121122
} assertNotNull("Timed out - didn't receive Blueprint CREATED or FAILURE event", acbl.success); assertTrue("Received Blueprint FAILURE event", acbl.success); ctx.stop(); manager.uninstall(ctx); sr.unregister(); } @org.ops4j.pax.exam.junit.Configuration public static Option[] configuration() {
207208209210211212213214215216217
Set<Bundle> bundles = ctx.getApplicationContent(); assertEquals("Number of bundles provisioned in the app", 4, bundles.size()); ctx.stop(); manager.uninstall(ctx); } private void generateOBRRepoXML(String ... bundleFiles) throws Exception {