diff options
author | Thomas Watson | 2016-01-14 18:42:13 +0000 |
---|---|---|
committer | Thomas Watson | 2016-01-14 18:42:13 +0000 |
commit | a86491beda1c6e8d89735a7bc7477dddda0026f9 (patch) | |
tree | f25c78d6495f4a381125409f05f2acd6eb4297d1 /bundles/org.eclipse.osgi.tests | |
parent | 5475c78a2681e45c7e6a2faf268abdb77204c0cd (diff) | |
download | rt.equinox.framework-a86491beda1c6e8d89735a7bc7477dddda0026f9.tar.gz rt.equinox.framework-a86491beda1c6e8d89735a7bc7477dddda0026f9.tar.xz rt.equinox.framework-a86491beda1c6e8d89735a7bc7477dddda0026f9.zip |
Bug 485692 - Add test to get class loader from system bundle wiring
Diffstat (limited to 'bundles/org.eclipse.osgi.tests')
-rw-r--r-- | bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/bundles/SystemBundleTests.java | 7 |
1 files changed, 7 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 db6422dc8..570c596af 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 @@ -2580,6 +2580,13 @@ public class SystemBundleTests extends AbstractBundleTests { equinox.waitForStop(5000); } + public void testSystemBundleLoader() { + Bundle systemBundle = OSGiTestsActivator.getContext().getBundle(Constants.SYSTEM_BUNDLE_LOCATION); + BundleWiring wiring = systemBundle.adapt(BundleWiring.class); + ClassLoader cl = wiring.getClassLoader(); + assertNotNull("No system bundle class loader.", cl); + } + private static File[] createBundles(File outputDir, int bundleCount) throws IOException { outputDir.mkdirs(); |