diff options
author | Thomas Watson | 2015-08-11 15:32:36 +0000 |
---|---|---|
committer | Thomas Watson | 2015-08-11 15:32:36 +0000 |
commit | 52896896aac837cb5d716383f38a6da44fd4796b (patch) | |
tree | 3676c6fea97c0ad3368e7b770a387698ec54db7f /bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java | |
parent | a01aa517aa6aa58815d8db1b948db89611ca9dce (diff) | |
download | rt.equinox.framework-52896896aac837cb5d716383f38a6da44fd4796b.tar.gz rt.equinox.framework-52896896aac837cb5d716383f38a6da44fd4796b.tar.xz rt.equinox.framework-52896896aac837cb5d716383f38a6da44fd4796b.zip |
Bug 471551 - SchemaFactory - Loading behaves differently by switchingI20150811-1400
from java 7 to 8
Diffstat (limited to 'bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java index 33cda2022..d624439b5 100644 --- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java +++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java @@ -2447,6 +2447,25 @@ public class SystemBundleTests extends AbstractBundleTests { equinox.stop(); } + public void testContextBootDelegation() throws BundleException { + File config = OSGiTestsActivator.getContext().getDataFile(getName()); + config.mkdirs(); + Map<String, Object> configuration = new HashMap<String, Object>(); + configuration.put(Constants.FRAMEWORK_STORAGE, config.getAbsolutePath()); + Equinox equinox = new Equinox(configuration); + + equinox.start(); + BundleContext systemContext = equinox.getBundleContext(); + try { + Bundle b = systemContext.installBundle(installer.getBundleLocation("test.bug471551")); + b.start(); + } catch (BundleException e) { + fail("Unexpected error", e); //$NON-NLS-1$ + } + + equinox.stop(); + } + private static File[] createBundles(File outputDir, int bundleCount) throws IOException { outputDir.mkdirs(); |