You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by ri...@apache.org on 2009/09/03 19:04:34 UTC
svn commit: r811034 -
/felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestClassLoading.java
Author: rickhall
Date: Thu Sep 3 17:04:34 2009
New Revision: 811034
URL: http://svn.apache.org/viewvc?rev=811034&view=rev
Log:
Remove accidentally committed code.
Modified:
felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestClassLoading.java
Modified: felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestClassLoading.java
URL: http://svn.apache.org/viewvc/felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestClassLoading.java?rev=811034&r1=811033&r2=811034&view=diff
==============================================================================
--- felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestClassLoading.java (original)
+++ felix/sandbox/rickhall/bnd-test/org.apache.felix.framework.test/src/org/apache/felix/framework/test/TestClassLoading.java Thu Sep 3 17:04:34 2009
@@ -102,83 +102,6 @@
}
}
- public void testImportClassLoad() throws Exception
- {
- try
- {
- // Load some bundles that export some packages.
- InputStream is = this.getClass().getClassLoader().getResourceAsStream("classloading.b002.jar");
- m_bundleA = getBundleContext().installBundle("classloading.b002.jar", is);
- is = this.getClass().getClassLoader().getResourceAsStream("classloading.b003.jar");
- m_bundleB = getBundleContext().installBundle("classloading.b003.jar", is);
-
- // Load a bundle that imports from bundle B.
- is = this.getClass().getClassLoader().getResourceAsStream("classloading.b004.jar");
- m_bundleC = getBundleContext().installBundle("classloading.b004.jar", is);
-
- Class clazz;
- try
- {
- clazz = m_bundleC.loadClass("org.apache.felix.framework.test.classloading.b003.CycleB");
- }
- catch (Exception ex)
- {
- assertTrue("Imported class should be visible.", false);
- }
- try
- {
- clazz = m_bundleB.loadClass("org.apache.felix.framework.test.classloading.b004.B004Class");
- assertTrue("Importer's class should NOT be visible.", false);
- }
- catch (Exception ex)
- {
- }
- }
- finally
- {
- cleanup();
- }
- }
-
- public void testImportClassLoad2() throws Exception
- {
- try
- {
- InputStream is = this.getClass().getClassLoader().getResourceAsStream("jbosgi142-bundleX.jar");
- m_bundleA = getBundleContext().installBundle("jbosgi142-bundleX.jar", is);
- m_bundleA.start();
- is = this.getClass().getClassLoader().getResourceAsStream("jbosgi142-bundleA.jar");
- m_bundleB = getBundleContext().installBundle("jbosgi142-bundleA.jar", is);
- m_bundleB.start();
- is = this.getClass().getClassLoader().getResourceAsStream("jbosgi142-bundleB.jar");
- m_bundleC = getBundleContext().installBundle("jbosgi142-bundleB.jar", is);
- m_bundleC.start();
-
- Class clazz;
- try
- {
- clazz = m_bundleC.loadClass("org.jboss.test.osgi.jbosgi142.bundleX.BeanX");
- }
- catch (Exception ex)
- {
- assertTrue("Imported class should be visible.", false);
- }
- try
- {
- clazz = m_bundleA.loadClass("org.jboss.test.osgi.jbosgi142.bundleA.BeanA");
- assertTrue("Importer's class should NOT be visible.", false);
- }
- catch (Exception ex)
- {
- System.out.println(ex);
- }
- }
- finally
- {
- cleanup();
- }
- }
-
public void testGetResourcesDynamic() throws Exception
{
try