317318319320321322323324325326327
Set<Bundle> bundles = ctx.getApplicationContent(); assertEquals("Number of bundles provisioned in the app", 5, bundles.size()); ctx.stop(); manager.uninstall(ctx); } /**
409410411412413414415416417418419
/** HelloWorldManager hwm = getOsgiService(HelloWorldManager.class); * int numberOfServices = hwm.getNumOfHelloServices(); * assertEquals(2, numberOfServices); */ ctx.stop(); manager.uninstall(ctx); }
241242243244245246247248249250251
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
8990919293949596979899
HelloWorld hw = getOsgiService(HelloWorld.class); String result = hw.getMessage(); assertEquals (result, "hello world"); ctx.stop(); manager.uninstall(ctx); } @Test public void testAppWithApplicationManifest() throws Exception {
108109110111112113114115116117118
HelloWorld hw = getOsgiService(HelloWorld.class); String result = hw.getMessage(); assertEquals (result, "hello world"); ctx.stop(); manager.uninstall(ctx); } @org.ops4j.pax.exam.junit.Configuration
256257258259260261262263264265266
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
111112113114115116117118119120121
sleepfor-=100; } 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
949596979899100101102103104
LOGGER.debug("uninstalling {} {} ", new Object[] { appSymName, appVersion }); if (context != null) { context.stop(); applicationManager.uninstall(context); } appContexts.remove(applicationLocation);
206207208209210211212213214215216