[jboss-cvs] JBossAS SVN: r82482 - in projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl: test and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 22 12:14:51 EST 2008
Author: kabir.khan at jboss.com
Date: 2008-12-22 12:14:51 -0500 (Mon, 22 Dec 2008)
New Revision: 82482
Added:
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportModuleSanityTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportPackageSanityTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithUsesPackageSanityTestCase.java
Modified:
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/BundleInfoBuilder.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithPackageDependencySanityTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java
Log:
[JBAOP-666] Port more tests from jboss-cl
Modified: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/BundleInfoBuilder.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/BundleInfoBuilder.java 2008-12-22 16:12:53 UTC (rev 82481)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/BundleInfoBuilder.java 2008-12-22 17:14:51 UTC (rev 82482)
@@ -111,6 +111,62 @@
return this;
}
+ public BundleInfoBuilder createReExportModule(String name)
+ {
+ requirements.add(clmdf.createReExportModule(name));
+ return this;
+ }
+
+ public BundleInfoBuilder createReExportModule(String name, VersionRange versionRange)
+ {
+ requirements.add(clmdf.createReExportModule(name, versionRange));
+ return this;
+ }
+
+ public BundleInfoBuilder createReExportModule(String name, VersionRange versionRange, boolean optional)
+ {
+ requirements.add(clmdf.createReExportModule(name, versionRange, optional));
+ return this;
+ }
+
+ public BundleInfoBuilder createReExportPackage(String name)
+ {
+ requirements.add(clmdf.createReExportPackage(name));
+ return this;
+ }
+
+ public BundleInfoBuilder createReExportPackage(String name, VersionRange versionRange)
+ {
+ requirements.add(clmdf.createReExportPackage(name, versionRange));
+ return this;
+ }
+
+ public BundleInfoBuilder createReExportPackage(String name, VersionRange versionRange, boolean optional)
+ {
+ requirements.add(clmdf.createReExportPackage(name, versionRange, optional));
+ return this;
+ }
+
+ public BundleInfoBuilder createUsesPackage(String name)
+ {
+ requirements.add(clmdf.createUsesPackage(name));
+ return this;
+ }
+
+ public BundleInfoBuilder createUsesPackage(String name, VersionRange versionRange)
+ {
+ requirements.add(clmdf.createUsesPackage(name, versionRange));
+ return this;
+ }
+
+ public BundleInfoBuilder createUsesPackage(String name, VersionRange versionRange, boolean reExport)
+ {
+ requirements.add(clmdf.createUsesPackage(name, versionRange, reExport));
+ return this;
+ }
+
+
+
public List<Capability> getCapabilities()
{
return capabilities;
Property changes on: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test
___________________________________________________________________
Name: svn:ignore
+ TODO
Modified: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithPackageDependencySanityTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithPackageDependencySanityTestCase.java 2008-12-22 16:12:53 UTC (rev 82481)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithPackageDependencySanityTestCase.java 2008-12-22 17:14:51 UTC (rev 82482)
@@ -180,8 +180,8 @@
try
{
BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
- createModule("PackageA").
- createPackage(PACKAGE_A, "1.0.0");
+ createModule("PackageA").
+ createPackage(PACKAGE_A, "1.0.0");
clA1 = createClassLoader("A1", builderA1, JAR_A_1);
BundleInfoBuilder builderA2 = BundleInfoBuilder.getBuilder().
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportModuleSanityTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportModuleSanityTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportModuleSanityTestCase.java 2008-12-22 17:14:51 UTC (rev 82482)
@@ -0,0 +1,188 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.classpool.jbosscl.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Tests the behaviour of the new classloaders so that we can get the same in the new classpools
+ * Reproduces org.jboss.test.classloading.vfs.metadata.test.ReExportPackageUnitTestCase using our test framework,
+ * ClassPoolWithReExportPackageTestCase replicates this with the javassist classpools
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassLoaderWithReExportModuleSanityTestCase extends JBossClClassPoolTest
+{
+
+ public ClassLoaderWithReExportModuleSanityTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassLoaderWithReExportModuleSanityTestCase.class);
+ }
+
+ public void testReExport() throws Exception
+ {
+ ClassLoader clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassLoader("A", builderA, JAR_A_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+
+ ClassLoader clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportModule("a");
+ clB = createClassLoader("B", builderB, JAR_B_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+
+ ClassLoader clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequireModule("b");
+ clC = createClassLoader("C", builderC, JAR_C_1);
+
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ assertLoadClass(CLASS_A, clC, clA);
+ assertLoadClass(CLASS_B, clC, clB);
+ assertLoadClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassLoader(clC);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clB);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clA);
+ }
+ }
+
+ public void testNoReExport() throws Exception
+ {
+ ClassLoader clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassLoader("A", builderA, JAR_A_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+
+ ClassLoader clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportModule("a");
+ clB = createClassLoader("B", builderB, JAR_B_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+
+ ClassLoader clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequirePackage(PACKAGE_B);
+ clC = createClassLoader("C", builderC, JAR_C_1);
+
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ assertCannotLoadClass(clC, CLASS_A);
+ assertLoadClass(CLASS_B, clC, clB);
+ assertLoadClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassLoader(clC);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clB);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clA);
+ }
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportPackageSanityTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportPackageSanityTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithReExportPackageSanityTestCase.java 2008-12-22 17:14:51 UTC (rev 82482)
@@ -0,0 +1,189 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.classpool.jbosscl.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Tests the behaviour of the new classloaders so that we can get the same in the new classpools
+ * Reproduces org.jboss.test.classloading.vfs.metadata.test.ReExportModuleUnitTestCase using our test framework,
+ * ClassPoolWithReExportModuleTestCase replicates this with the javassist classpools
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassLoaderWithReExportPackageSanityTestCase extends JBossClClassPoolTest
+{
+
+ public ClassLoaderWithReExportPackageSanityTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassLoaderWithReExportPackageSanityTestCase.class);
+ }
+
+ public void testReExport() throws Exception
+ {
+ ClassLoader clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassLoader("A", builderA, JAR_A_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+
+ ClassLoader clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportPackage(PACKAGE_A);
+
+ clB = createClassLoader("B", builderB, JAR_B_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+
+ ClassLoader clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequireModule("b");
+ clC = createClassLoader("C", builderC, JAR_C_1);
+
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ assertLoadClass(CLASS_A, clC, clA);
+ assertLoadClass(CLASS_B, clC, clB);
+ assertLoadClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassLoader(clC);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clB);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clA);
+ }
+ }
+
+ public void testNoReExport() throws Exception
+ {
+ ClassLoader clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassLoader("A", builderA, JAR_A_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+
+ ClassLoader clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportModule("a");
+ clB = createClassLoader("B", builderB, JAR_B_1);
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+
+ ClassLoader clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequirePackage(PACKAGE_B);
+ clC = createClassLoader("C", builderC, JAR_C_1);
+
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ assertCannotLoadClass(clC, CLASS_A);
+ assertLoadClass(CLASS_B, clC, clB);
+ assertLoadClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassLoader(clC);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ assertLoadClass(CLASS_A, clB, clA);
+ assertLoadClass(CLASS_B, clB);
+ assertCannotLoadClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clB);
+ }
+ assertLoadClass(CLASS_A, clA);
+ assertCannotLoadClass(clA, CLASS_B);
+ assertCannotLoadClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassLoader(clA);
+ }
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithUsesPackageSanityTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithUsesPackageSanityTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassLoaderWithUsesPackageSanityTestCase.java 2008-12-22 17:14:51 UTC (rev 82482)
@@ -0,0 +1,102 @@
+/*
+* JBoss, Home of Professional Open Source.
+* Copyright 2006, Red Hat Middleware LLC, and individual contributors
+* as indicated by the @author tags. See the copyright.txt file in the
+* distribution for a full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.aop.classpool.jbosscl.test;
+
+import junit.framework.Test;
+
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Tests the behaviour of the new classloaders so that we can get the same in the new classpools
+ * Reproduces org.jboss.test.classloading.vfs.metadata.test.UsesPackageUnitTestCase using our test framework,
+ * ClassPoolWithUsesPackageTestCase replicates this with the javassist classpools
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassLoaderWithUsesPackageSanityTestCase extends JBossClClassPoolTest
+{
+
+ public ClassLoaderWithUsesPackageSanityTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassLoaderWithUsesPackageSanityTestCase.class);
+ }
+
+ public void testUsesImport() throws Exception
+ {
+ ClassLoader clA1 = null;
+
+ try
+ {
+ BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
+ createModule("a1").
+ createPackage(PACKAGE_A);
+ clA1 = createClassLoader("A1", builderA1, JAR_A_1);
+ assertLoadClass(CLASS_A, clA1);
+
+ ClassLoader clA2 = null;
+ try
+ {
+ BundleInfoBuilder builderA2 = BundleInfoBuilder.getBuilder().
+ createModule("a2").
+ createUsesPackage(PACKAGE_A);
+
+ clA2 = createClassLoader("A2", builderA2, JAR_A_1);
+ assertLoadClass(CLASS_A, clA1);
+ assertLoadClass(CLASS_A, clA2, clA1);
+ }
+ finally
+ {
+ unregisterClassLoader(clA2);
+ }
+ assertLoadClass(CLASS_A, clA1);
+ }
+ finally
+ {
+ unregisterClassLoader(clA1);
+ }
+ }
+
+ public void testUsesNoImport() throws Exception
+ {
+ ClassLoader clA1 = null;
+
+ try
+ {
+ BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
+ createModule("a1").
+ createUsesPackage(PACKAGE_A);
+ clA1 = createClassLoader("A1", builderA1, JAR_A_1);
+ assertLoadClass(CLASS_A, clA1);
+ }
+ finally
+ {
+ unregisterClassLoader(clA1);
+ }
+ }
+
+}
Modified: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java 2008-12-22 16:12:53 UTC (rev 82481)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java 2008-12-22 17:14:51 UTC (rev 82482)
@@ -45,6 +45,9 @@
suite.addTest(ClassPoolWithRepositoryTestCase.suite());
suite.addTest(ClassLoaderWithModuleDependencySanityTestCase.suite());
suite.addTest(ClassLoaderWithPackageDependencySanityTestCase.suite());
+ suite.addTest(ClassLoaderWithReExportModuleSanityTestCase.suite());
+ suite.addTest(ClassLoaderWithReExportPackageSanityTestCase.suite());
+ suite.addTest(ClassLoaderWithUsesPackageSanityTestCase.suite());
return suite;
}
More information about the jboss-cvs-commits
mailing list