113114115116117118119120121122123
assertEquals(HttpURLConnection.HTTP_OK, conn.getResponseCode()); assertTrue("The response did not contain the expected content", response.contains("Blog home")); ctx.stop(); manager.uninstall(ctx); } @org.ops4j.pax.exam.junit.Configuration
9596979899100101102103104105
assertTrue("The response did not contain the expected content", response.contains("Blog home")); ctx.stop(); manager.uninstall(ctx); } @org.ops4j.pax.exam.junit.Configuration public static Option[] configuration() { Option[] options = options(
293294295296297298299300301302303
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 {
142143144145146147148149150151152
HelloWorld hw = context().getService(HelloWorld.class); String result = hw.getMessage(); assertEquals (result, "hello world"); ctx.stop(); manager.uninstall(ctx); } public static Option[] generalConfiguration() { return testOptions( paxLogging("DEBUG"),
157158159160161162163164165166167
AriesApplicationContext ctx = manager.install(app); ctx.start(); assertHelloWorldService("test.eba"); manager.uninstall(ctx); } @Test public void testAppWithApplicationManifest() throws Exception {
170171172173174175176177178179180
AriesApplicationContext ctx = manager.install(app); ctx.start(); assertHelloWorldService("org.apache.aries.sample2"); manager.uninstall(ctx); } @Test public void testUninstallReinstall() throws Exception {
187188189190191192193194195196197
ctx.start(); assertHelloWorldService("org.apache.aries.sample2"); ctx.stop(); manager.uninstall(ctx); assertNull(IsolationTestUtils.findIsolatedAppBundleContext(bundleContext, "org.apache.aries.sample2")); ctx = manager.install(app); ctx.start();
196197198199200201202203204205206
ctx = manager.install(app); ctx.start(); assertHelloWorldService("org.apache.aries.sample2"); manager.uninstall(ctx); } @Test public void testAppWithFragment() throws Exception {
210211212213214215216217218219220
ctx.start(); assertHelloWorldService("withFragment.eba"); manager.uninstall(ctx); } @Test public void testAppWithGlobalRepositoryBundle() throws Exception {
241242243244245246247248249250251
AriesApplicationContext ctx = manager.install(newApp); ctx.start(); assertHelloWorldService("org.apache.aries.sample2", "hello brave new world"); manager.uninstall(ctx); } @Test public void testFrameworkResolvedBeforeInnerBundlesStart() throws Exception { /*