174175176177178179180181182183184
assertEquals(HttpURLConnection.HTTP_OK, conn.getResponseCode()); assertTrue("The response did not contain the expected content", response.contains("Blog home")); ctx.stop(); manager.uninstall(ctx); }
114115116117118119120121122123124
949596979899100101102103104
LOGGER.debug("uninstalling {} {} ", new Object[] { appSymName, appVersion }); if (context != null) { context.stop(); applicationManager.uninstall(context); } appContexts.remove(applicationLocation);
160161162163164165166167168169170
ctx.start(); assertHelloWorldService("org.apache.aries.sample2"); ctx.stop(); manager.uninstall(ctx); assertNull(IsolationTestUtils.findIsolatedAppBundleContext(bundleContext, "org.apache.aries.sample2")); ctx = manager.install(app);
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
158159160161162163164165166167168
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
140141142143144145146147148149150
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() {