[jboss-cvs] JBossAS SVN: r82484 - projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 22 13:51:08 EST 2008
Author: kabir.khan at jboss.com
Date: 2008-12-22 13:51:08 -0500 (Mon, 22 Dec 2008)
New Revision: 82484
Added:
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithModuleDependencyTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithPackageDependencyTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportModuleTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportPackageTestCase.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithUsesPackageTestCase.java
Modified:
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java
Log:
[JBAOP-666] Commit classpool tests replicating the classloader sanity tests
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithModuleDependencyTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithModuleDependencyTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithModuleDependencyTestCase.java 2008-12-22 18:51:08 UTC (rev 82484)
@@ -0,0 +1,325 @@
+/*
+* 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 javassist.ClassPool;
+import javassist.CtClass;
+import junit.framework.Test;
+
+import org.jboss.classloading.spi.version.VersionRange;
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Reproduces the behavior found in ClassLoaderWithModuleDependencySanityTestCase
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassPoolWithModuleDependencyTestCase extends JBossClClassPoolTest
+{
+ final static String STRING = String.class.getName();
+
+ public ClassPoolWithModuleDependencyTestCase(String name)
+ {
+ super(name);
+ }
+
+
+ public static Test suite()
+ {
+ return suite(ClassPoolWithModuleDependencyTestCase.class, new Class[0]);
+ }
+
+ public void testImportNoVersionCheck() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+
+ CtClass aFromA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("ModuleB").
+ createRequireModule("ModuleA");
+ clB = createClassPool("B", builderB, JAR_B_1);
+
+ CtClass aFromA1 = assertLoadCtClass(CLASS_A, clA, clA);
+ assertSame(aFromA, aFromA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertLoadCtClass(CLASS_B, clB, clB);
+ CtClass aFromB = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(aFromA, aFromB);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass aFromA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(aFromA, aFromA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ //TODO assertNoClassLoader(b);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ public void testImportVersionCheck() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA", "1.0.0").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createRequireModule("ModuleA", new VersionRange("1.0.0", "2.0.0")).
+ createPackage(PACKAGE_B);
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertLoadCtClass(CLASS_B, clB);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ public void testImportVersionCheckFailed() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA", "3.0.0").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createRequireModule("ModuleA", new VersionRange("1.0.0", "2.0.0")).
+ createPackage(PACKAGE_B);
+ try
+ {
+ createClassPool("B", builderB, JAR_B_1);
+ fail("Should not have been able to create loader");
+ }
+ catch(NoSuchClassLoaderException expected)
+ {
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassLoader("B");
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ //These are my extra tests
+ public void testSeveralModulesWithSamePackages() throws Exception
+ {
+ ClassPool clAModuleX = null;
+ ClassPool clAModuleA = null;
+ ClassPool clAModuleY = null;
+
+ try
+ {
+ BundleInfoBuilder builderAX = BundleInfoBuilder.getBuilder().
+ createModule("ModuleX").
+ createPackage(PACKAGE_A);
+ clAModuleX = createClassPool("X", builderAX, JAR_A_1);
+
+ BundleInfoBuilder builderAA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA").
+ createPackage(PACKAGE_A);
+ clAModuleA = createClassPool("A", builderAA, JAR_A_1);
+
+ BundleInfoBuilder builderAY = BundleInfoBuilder.getBuilder().
+ createModule("ModuleY").
+ createPackage(PACKAGE_A);
+ clAModuleY = createClassPool("Y", builderAY, JAR_A_1);
+
+ CtClass classAX = assertLoadCtClass(CLASS_A, clAModuleX);
+ CtClass classAA = assertLoadCtClass(CLASS_A, clAModuleA);
+ CtClass classAY = assertLoadCtClass(CLASS_A, clAModuleY);
+ assertCannotLoadCtClass(clAModuleX, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA, CLASS_B);
+ assertCannotLoadCtClass(clAModuleY, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createRequireModule("ModuleA").
+ createPackage(PACKAGE_B);
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classAX1 = assertLoadCtClass(CLASS_A, clAModuleX);
+ assertSame(classAX, classAX1);
+ CtClass classAA1 = assertLoadCtClass(CLASS_A, clAModuleA);
+ assertSame(classAA, classAA1);
+ CtClass classAY1 = assertLoadCtClass(CLASS_A, clAModuleY);
+ assertSame(classAY, classAY1);
+ assertCannotLoadCtClass(clAModuleX, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA, CLASS_B);
+ assertCannotLoadCtClass(clAModuleY, CLASS_B);
+
+ assertLoadCtClass(CLASS_B, clB, clB);
+ CtClass aFromB = assertLoadCtClass(CLASS_A, clB, clAModuleA);
+ assertSame(aFromB, classAA);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classAX1 = assertLoadCtClass(CLASS_A, clAModuleX);
+ assertSame(classAX, classAX1);
+ CtClass classAA1 = assertLoadCtClass(CLASS_A, clAModuleA);
+ assertSame(classAA, classAA1);
+ CtClass classAY1 = assertLoadCtClass(CLASS_A, clAModuleY);
+ assertSame(classAY, classAY1);
+ assertCannotLoadCtClass(clAModuleX, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA, CLASS_B);
+ assertCannotLoadCtClass(clAModuleY, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clAModuleY);
+ unregisterClassPool(clAModuleA);
+ unregisterClassPool(clAModuleX);
+ }
+ }
+
+ public void testSeveralModulesWithSameNamesDifferentVersions() throws Exception
+ {
+ ClassPool clAModuleA1 = null;
+ ClassPool clAModuleA2 = null;
+ ClassPool clAModuleA3 = null;
+
+ try
+ {
+ BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA", "1.0.0").
+ createPackage(PACKAGE_A);
+ clAModuleA1 = createClassPool("X", builderA1, JAR_A_1);
+
+ BundleInfoBuilder builderA2 = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA", "2.0.0").
+ createPackage(PACKAGE_A);
+ clAModuleA2 = createClassPool("A", builderA2, JAR_A_1);
+
+ BundleInfoBuilder builderA3 = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA", "3.0.0").
+ createPackage(PACKAGE_A);
+ clAModuleA3 = createClassPool("Y", builderA3, JAR_A_1);
+
+ CtClass classAX = assertLoadCtClass(CLASS_A, clAModuleA1);
+ CtClass classAA = assertLoadCtClass(CLASS_A, clAModuleA2);
+ CtClass classAY = assertLoadCtClass(CLASS_A, clAModuleA3);
+ assertCannotLoadCtClass(clAModuleA1, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA2, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA3, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createRequireModule("ModuleA", new VersionRange("2.0.0", true, "3.0.0", false)).
+ createPackage(PACKAGE_B);
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classAX1 = assertLoadCtClass(CLASS_A, clAModuleA1);
+ assertSame(classAX, classAX1);
+ CtClass classAA1 = assertLoadCtClass(CLASS_A, clAModuleA2);
+ assertSame(classAA, classAA1);
+ CtClass classAY1 = assertLoadCtClass(CLASS_A, clAModuleA3);
+ assertSame(classAY, classAY1);
+ assertCannotLoadCtClass(clAModuleA1, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA2, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA3, CLASS_B);
+
+ assertLoadCtClass(CLASS_B, clB, clB);
+ CtClass aFromB = assertLoadCtClass(CLASS_A, clB, clAModuleA2);
+ assertSame(aFromB, classAA);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classAX1 = assertLoadCtClass(CLASS_A, clAModuleA1);
+ assertSame(classAX, classAX1);
+ CtClass classAA1 = assertLoadCtClass(CLASS_A, clAModuleA2);
+ assertSame(classAA, classAA1);
+ CtClass classAY1 = assertLoadCtClass(CLASS_A, clAModuleA3);
+ assertSame(classAY, classAY1);
+ assertCannotLoadCtClass(clAModuleA1, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA2, CLASS_B);
+ assertCannotLoadCtClass(clAModuleA3, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clAModuleA3);
+ unregisterClassPool(clAModuleA2);
+ unregisterClassPool(clAModuleA1);
+ }
+
+ }
+
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithPackageDependencyTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithPackageDependencyTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithPackageDependencyTestCase.java 2008-12-22 18:51:08 UTC (rev 82484)
@@ -0,0 +1,246 @@
+/*
+* 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 javassist.ClassPool;
+import javassist.CtClass;
+import junit.framework.Test;
+
+import org.jboss.classloading.spi.version.VersionRange;
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Reproduces the behaviour found in ClassLoaderWithPackageDependencySanityTestCase
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassPoolWithPackageDependencyTestCase extends JBossClClassPoolTest
+{
+
+ public ClassPoolWithPackageDependencyTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassPoolWithPackageDependencyTestCase.class);
+ }
+
+ public void testImportNoVersionCheck() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createPackage(PACKAGE_B).
+ createRequirePackage(PACKAGE_A);
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertLoadCtClass(CLASS_B, clB);
+ CtClass aFromB = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, aFromB);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ public void testImportVersionCheck() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA").
+ createPackage(PACKAGE_A, "1.0.0");
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createPackage(PACKAGE_B).
+ createRequirePackage(PACKAGE_A, new VersionRange("1.0.0", "2.0.0"));
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertLoadCtClass(CLASS_B, clB);
+ CtClass aFromB = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, aFromB);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ public void testImportVersionCheckFailed() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("ModuleA").
+ createPackage(PACKAGE_A, "3.0.0");
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createPackage(PACKAGE_B).
+ createRequirePackage(PACKAGE_A, new VersionRange("1.0.0", "2.0.0"));
+ try
+ {
+ createClassPool("B", builderB, JAR_B_1);
+ fail("Should not have been able to create loader");
+ }
+ catch(NoSuchClassLoaderException expected)
+ {
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassLoader("B");
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ //These are mine
+
+ public void testSeveralModulesWithSamePackagesDifferentVersions() throws Exception
+ {
+ ClassPool clA1 = null;
+ ClassPool clA2 = null;
+ ClassPool clA3 = null;
+ try
+ {
+ BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
+ createModule("PackageA").
+ createPackage(PACKAGE_A, "1.0.0");
+ clA1 = createClassPool("A1", builderA1, JAR_A_1);
+
+ BundleInfoBuilder builderA2 = BundleInfoBuilder.getBuilder().
+ createModule("PackageA").
+ createPackage(PACKAGE_A, "2.0.0");
+ clA2 = createClassPool("A2", builderA2, JAR_A_1);
+
+ BundleInfoBuilder builderA3 = BundleInfoBuilder.getBuilder().
+ createModule("PackageA").
+ createPackage(PACKAGE_A, "3.0.0");
+ clA3 = createClassPool("A3", builderA3, JAR_A_1);
+
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA1);
+ CtClass classA2 = assertLoadCtClass(CLASS_A, clA2);
+ CtClass classA3 = assertLoadCtClass(CLASS_A, clA3);
+ assertCannotLoadCtClass(clA1, CLASS_B);
+ assertCannotLoadCtClass(clA2, CLASS_B);
+ assertCannotLoadCtClass(clA3, CLASS_B);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createPackage(PACKAGE_B).
+ createRequirePackage(PACKAGE_A, new VersionRange("1.0.0", false, "2.0.0", true));
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA11 = assertLoadCtClass(CLASS_A, clA1);
+ assertSame(classA1, classA11);
+ CtClass classA21 = assertLoadCtClass(CLASS_A, clA2);
+ assertSame(classA2, classA21);
+ CtClass classA31 = assertLoadCtClass(CLASS_A, clA3);
+ assertSame(classA3, classA31);
+ assertCannotLoadCtClass(clA1, CLASS_B);
+ assertCannotLoadCtClass(clA2, CLASS_B);
+ assertCannotLoadCtClass(clA3, CLASS_B);
+
+ assertLoadCtClass(CLASS_B, clB);
+ CtClass classAFromB = assertLoadCtClass(CLASS_A, clB, clA2);
+ assertSame(classA2, classAFromB);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA11 = assertLoadCtClass(CLASS_A, clA1);
+ assertSame(classA1, classA11);
+ CtClass classA21 = assertLoadCtClass(CLASS_A, clA2);
+ assertSame(classA2, classA21);
+ CtClass classA31 = assertLoadCtClass(CLASS_A, clA3);
+ assertSame(classA3, classA31);
+ assertCannotLoadCtClass(clA1, CLASS_B);
+ assertCannotLoadCtClass(clA2, CLASS_B);
+ assertCannotLoadCtClass(clA3, CLASS_B);
+ }
+ finally
+ {
+ unregisterClassPool(clA3);
+ unregisterClassPool(clA2);
+ unregisterClassPool(clA1);
+ }
+
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportModuleTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportModuleTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportModuleTestCase.java 2008-12-22 18:51:08 UTC (rev 82484)
@@ -0,0 +1,209 @@
+/*
+* 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 javassist.ClassPool;
+import javassist.CtClass;
+import junit.framework.Test;
+
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Reproduces the behaviour of ClassLoaderWithReExportModuleSanityTestCase
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassPoolWithReExportModuleTestCase extends JBossClClassPoolTest
+{
+
+ public ClassPoolWithReExportModuleTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassPoolWithReExportModuleTestCase.class);
+ }
+
+ public void testReExport() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportModule("a");
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB = assertLoadCtClass(CLASS_B, clB);
+ assertCannotLoadCtClass(clB, CLASS_C);
+
+ ClassPool clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequireModule("b");
+ clC = createClassPool("C", builderC, JAR_C_1);
+
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clC, clA);
+ assertSame(classA, classA1);
+ classB1 = assertLoadCtClass(CLASS_B, clC, clB);
+ assertSame(classB, classB1);
+ assertLoadCtClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassPool(clC);
+ }
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ public void testNoReExport() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportModule("a");
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB = assertLoadCtClass(CLASS_B, clB);
+ assertCannotLoadCtClass(clB, CLASS_C);
+
+ ClassPool clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequirePackage(PACKAGE_B);
+ clC = createClassPool("C", builderC, JAR_C_1);
+
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ assertCannotLoadCtClass(clC, CLASS_A);
+ classB1 = assertLoadCtClass(CLASS_B, clC, clB);
+ assertSame(classB, classB1);
+ assertLoadCtClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassPool(clC);
+ }
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportPackageTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportPackageTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithReExportPackageTestCase.java 2008-12-22 18:51:08 UTC (rev 82484)
@@ -0,0 +1,210 @@
+/*
+* 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 javassist.ClassPool;
+import javassist.CtClass;
+import junit.framework.Test;
+
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Reproduces ClassLoaderWithReExportPackageSanityTestCase
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassPoolWithReExportPackageTestCase extends JBossClClassPoolTest
+{
+
+ public ClassPoolWithReExportPackageTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassPoolWithReExportPackageTestCase.class);
+ }
+
+ public void testReExport() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportPackage(PACKAGE_A);
+
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB = assertLoadCtClass(CLASS_B, clB);
+ assertCannotLoadCtClass(clB, CLASS_C);
+
+ ClassPool clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequireModule("b");
+ clC = createClassPool("C", builderC, JAR_C_1);
+
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clC, clA);
+ assertSame(classA, classA1);
+ classB1 = assertLoadCtClass(CLASS_B, clC, clB);
+ assertSame(classB, classB1);
+ assertLoadCtClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassPool(clC);
+ }
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+
+ public void testNoReExport() throws Exception
+ {
+ ClassPool clA = null;
+ try
+ {
+ BundleInfoBuilder builderA = BundleInfoBuilder.getBuilder().
+ createModule("a").
+ createPackage(PACKAGE_A);
+ clA = createClassPool("A", builderA, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+
+ ClassPool clB = null;
+ try
+ {
+ BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
+ createModule("b").
+ createPackage(PACKAGE_B).
+ createReExportModule("a");
+ clB = createClassPool("B", builderB, JAR_B_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB = assertLoadCtClass(CLASS_B, clB);
+ assertCannotLoadCtClass(clB, CLASS_C);
+
+ ClassPool clC = null;
+ try
+ {
+ BundleInfoBuilder builderC = BundleInfoBuilder.getBuilder().
+ createRequirePackage(PACKAGE_B);
+ clC = createClassPool("C", builderC, JAR_C_1);
+
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ assertCannotLoadCtClass(clC, CLASS_A);
+ classB1 = assertLoadCtClass(CLASS_B, clC, clB);
+ assertSame(classB, classB1);
+ assertLoadCtClass(CLASS_C, clC);
+ }
+ finally
+ {
+ unregisterClassPool(clC);
+ }
+ classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ classA1 = assertLoadCtClass(CLASS_A, clB, clA);
+ assertSame(classA, classA1);
+ CtClass classB1 = assertLoadCtClass(CLASS_B, clB);
+ assertSame(classB, classB1);
+ assertCannotLoadCtClass(clB, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clB);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA);
+ assertSame(classA, classA1);
+ assertCannotLoadCtClass(clA, CLASS_B);
+ assertCannotLoadCtClass(clA, CLASS_C);
+ }
+ finally
+ {
+ unregisterClassPool(clA);
+ }
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithUsesPackageTestCase.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithUsesPackageTestCase.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/ClassPoolWithUsesPackageTestCase.java 2008-12-22 18:51:08 UTC (rev 82484)
@@ -0,0 +1,105 @@
+/*
+* 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 javassist.ClassPool;
+import javassist.CtClass;
+import junit.framework.Test;
+
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
+
+/**
+ * Reproduces ClassLoaderWithUsesPackageSanityTestCase
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class ClassPoolWithUsesPackageTestCase extends JBossClClassPoolTest
+{
+
+ public ClassPoolWithUsesPackageTestCase(String name)
+ {
+ super(name);
+ }
+
+ public static Test suite()
+ {
+ return suite(ClassPoolWithUsesPackageTestCase.class);
+ }
+
+ public void testUsesImport() throws Exception
+ {
+ ClassPool clA1 = null;
+
+ try
+ {
+ BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
+ createModule("a1").
+ createPackage(PACKAGE_A);
+ clA1 = createClassPool("A1", builderA1, JAR_A_1);
+ CtClass classA = assertLoadCtClass(CLASS_A, clA1);
+
+ ClassPool clA2 = null;
+ try
+ {
+ BundleInfoBuilder builderA2 = BundleInfoBuilder.getBuilder().
+ createModule("a2").
+ createUsesPackage(PACKAGE_A);
+
+ clA2 = createClassPool("A2", builderA2, JAR_A_1);
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA1);
+ assertSame(classA, classA1);
+ classA1 = assertLoadCtClass(CLASS_A, clA2, clA1);
+ assertSame(classA, classA1);
+ }
+ finally
+ {
+ unregisterClassPool(clA2);
+ }
+ CtClass classA1 = assertLoadCtClass(CLASS_A, clA1);
+ assertSame(classA, classA1);
+ }
+ finally
+ {
+ unregisterClassPool(clA1);
+ }
+ }
+
+ public void testUsesNoImport() throws Exception
+ {
+ ClassPool clA1 = null;
+
+ try
+ {
+ BundleInfoBuilder builderA1 = BundleInfoBuilder.getBuilder().
+ createModule("a1").
+ createUsesPackage(PACKAGE_A);
+ clA1 = createClassPool("A1", builderA1, JAR_A_1);
+ assertLoadCtClass(CLASS_A, clA1);
+ }
+ finally
+ {
+ unregisterClassPool(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 18:32:59 UTC (rev 82483)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java 2008-12-22 18:51:08 UTC (rev 82484)
@@ -42,12 +42,17 @@
TestSuite suite = new TestSuite("UclClassPool All Tests");
suite.addTest(ClassLoaderWithRepositorySanityTestCase.suite());
- suite.addTest(ClassPoolWithRepositoryTestCase.suite());
suite.addTest(ClassLoaderWithModuleDependencySanityTestCase.suite());
suite.addTest(ClassLoaderWithPackageDependencySanityTestCase.suite());
suite.addTest(ClassLoaderWithReExportModuleSanityTestCase.suite());
suite.addTest(ClassLoaderWithReExportPackageSanityTestCase.suite());
suite.addTest(ClassLoaderWithUsesPackageSanityTestCase.suite());
+ suite.addTest(ClassPoolWithRepositoryTestCase.suite());
+ suite.addTest(ClassPoolWithModuleDependencyTestCase.suite());
+ suite.addTest(ClassPoolWithPackageDependencyTestCase.suite());
+ suite.addTest(ClassPoolWithReExportModuleTestCase.suite());
+ suite.addTest(ClassPoolWithReExportPackageTestCase.suite());
+ suite.addTest(ClassPoolWithUsesPackageTestCase.suite());
return suite;
}
More information about the jboss-cvs-commits
mailing list