[jboss-cvs] JBossAS SVN: r82359 - 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
Thu Dec 18 05:33:27 EST 2008
Author: kabir.khan at jboss.com
Date: 2008-12-18 05:33:27 -0500 (Thu, 18 Dec 2008)
New Revision: 82359
Added:
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/CapabilityInfo.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/ModuleOrPackageInfo.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/RequirementInfo.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java
Modified:
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockDeploymentUnit.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockModuleFactory.java
projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTest.java
Log:
[JBAOP-666] Rename the test suite and add initial requirements and capability buiilder
Added: 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 (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/BundleInfoBuilder.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -0,0 +1,123 @@
+/*
+* 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.support;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.classloading.spi.metadata.Capability;
+import org.jboss.classloading.spi.metadata.ClassLoadingMetaDataFactory;
+import org.jboss.classloading.spi.metadata.Requirement;
+import org.jboss.classloading.spi.version.VersionRange;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class BundleInfoBuilder
+{
+ static ClassLoadingMetaDataFactory clmdf = ClassLoadingMetaDataFactory.getInstance();
+
+ List<Capability> capabilities = new ArrayList<Capability>();
+ List<Requirement> requirements = new ArrayList<Requirement>();
+
+ private BundleInfoBuilder()
+ {
+
+ }
+
+ public static BundleInfoBuilder getBuilder()
+ {
+ return new BundleInfoBuilder();
+ }
+
+ public BundleInfoBuilder createModule(String name)
+ {
+ capabilities.add(clmdf.createModule(name));
+ return this;
+ }
+
+ public BundleInfoBuilder createModule(String name, Object version)
+ {
+ capabilities.add(clmdf.createModule(name, version));
+ return this;
+ }
+
+ public BundleInfoBuilder createRequireModule(String name)
+ {
+ requirements.add(clmdf.createRequireModule(name, null));
+ return this;
+ }
+
+ public BundleInfoBuilder createRequireModule(String name, VersionRange versionRange)
+ {
+ requirements.add(clmdf.createRequireModule(name, versionRange));
+ return this;
+ }
+
+ public BundleInfoBuilder createRequireModule(String name, VersionRange versionRange, boolean optional, boolean reExport, boolean dynamic)
+ {
+ requirements.add(clmdf.createRequireModule(name, versionRange, optional, reExport, dynamic));
+ return this;
+ }
+
+ public BundleInfoBuilder createPackage(String name)
+ {
+ capabilities.add(clmdf.createPackage(name));
+ return this;
+ }
+
+ public BundleInfoBuilder createPackage(String name, Object version)
+ {
+ capabilities.add(clmdf.createPackage(name, version));
+ return this;
+ }
+
+ public BundleInfoBuilder createRequirePackage(String name)
+ {
+ requirements.add(clmdf.createRequirePackage(name));
+ return this;
+ }
+
+ public BundleInfoBuilder createRequirePackage(String name, VersionRange versionRange)
+ {
+ requirements.add(clmdf.createRequirePackage(name, versionRange));
+ return this;
+ }
+
+ public BundleInfoBuilder createRequirePackage(String name, VersionRange versionRange, boolean optional, boolean reExport, boolean dynamic)
+ {
+ requirements.add(clmdf.createRequirePackage(name, versionRange, optional, reExport, dynamic));
+ return this;
+ }
+
+ public List<Capability> getCapabilities()
+ {
+ return capabilities;
+ }
+
+ public List<Requirement> getRequirements()
+ {
+ return requirements;
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/CapabilityInfo.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/CapabilityInfo.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/CapabilityInfo.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -0,0 +1,42 @@
+/*
+* 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.support;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class CapabilityInfo extends ModuleOrPackageInfo
+{
+ public CapabilityInfo(String name, Object version)
+ {
+ // FIXME ModuleCapabilityInfo constructor
+ super(name, version);
+ }
+
+ public CapabilityInfo(String name)
+ {
+ // FIXME ModuleCapabilityInfo constructor
+ super(name);
+ }
+}
Modified: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockDeploymentUnit.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockDeploymentUnit.java 2008-12-18 10:28:03 UTC (rev 82358)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockDeploymentUnit.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -23,12 +23,16 @@
import java.net.URL;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.concurrent.CopyOnWriteArraySet;
import org.jboss.classloading.spi.metadata.ClassLoadingMetaData;
+import org.jboss.dependency.spi.CallbackItem;
import org.jboss.dependency.spi.Controller;
import org.jboss.dependency.spi.ControllerContext;
import org.jboss.dependency.spi.ControllerMode;
@@ -36,6 +40,7 @@
import org.jboss.dependency.spi.DependencyInfo;
import org.jboss.dependency.spi.DependencyItem;
import org.jboss.dependency.spi.ErrorHandlingMode;
+import org.jboss.dependency.spi.LifecycleCallbackItem;
import org.jboss.dependency.spi.ScopeInfo;
import org.jboss.deployers.client.spi.main.MainDeployer;
import org.jboss.deployers.spi.DeploymentException;
@@ -338,6 +343,7 @@
private class MockControllerContext extends JBossObject implements ControllerContext
{
+ DependencyInfo dependencies = new MockDependencyInfo();
public Set<Object> getAliases()
{
return null;
@@ -350,7 +356,7 @@
public DependencyInfo getDependencyInfo()
{
- return null;
+ return dependencies;
}
public Throwable getError()
@@ -420,5 +426,121 @@
public void uninstall(ControllerState fromState, ControllerState toState)
{
}
- }
+ }
+
+ private class MockDependencyInfo extends JBossObject implements DependencyInfo
+ {
+ private Set<DependencyItem> dependsOnMe = new HashSet<DependencyItem>();
+ private Set<DependencyItem> iDependOn = new HashSet<DependencyItem>();
+ private Set<DependencyItem> unresolved = new CopyOnWriteArraySet<DependencyItem>();
+
+ public void addDependsOnMe(DependencyItem dependency)
+ {
+ dependsOnMe.add(dependency);
+ }
+
+ public void addIDependOn(DependencyItem dependency)
+ {
+ iDependOn.add(dependency);
+ }
+
+ public <T> void addInstallItem(CallbackItem<T> callbackItem)
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public void addLifecycleCallback(LifecycleCallbackItem lifecycleCallbackItem)
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public <T> void addUninstallItem(CallbackItem<T> callbackItem)
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public Set<DependencyItem> getDependsOnMe(Class<?> type)
+ {
+ return dependsOnMe;
+ }
+
+ public Set<DependencyItem> getIDependOn(Class<?> type)
+ {
+ return iDependOn;
+ }
+
+ public Set<CallbackItem<?>> getInstallItems()
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public List<LifecycleCallbackItem> getLifecycleCallbacks()
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public Set<CallbackItem<?>> getUninstallItems()
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public boolean isAutowireCandidate()
+ {
+ return false;
+ }
+
+ public void removeDependsOnMe(DependencyItem dependency)
+ {
+ dependsOnMe.remove(dependency);
+ }
+
+ public void removeIDependOn(DependencyItem dependency)
+ {
+ iDependOn.remove(dependency);
+ }
+
+ public <T> void removeInstallItem(CallbackItem<T> callbackItem)
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public <T> void removeUninstallItem(CallbackItem<T> callbackItem)
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public void setAutowireCandidate(boolean candidate)
+ {
+ throw new RuntimeException("NYI");
+ }
+
+ public boolean resolveDependencies(Controller controller, ControllerState state)
+ {
+ boolean resolved = true;
+ Set<DependencyItem> items = getUnresolvedDependencies(state);
+ if (items.isEmpty() == false)
+ {
+ for (DependencyItem item : items)
+ {
+ if (item.resolve(controller) == false)
+ resolved = false;
+ }
+ }
+ return resolved;
+ }
+
+ public Set<DependencyItem> getUnresolvedDependencies(ControllerState state)
+ {
+ if (unresolved.isEmpty())
+ return Collections.emptySet();
+
+ Set<DependencyItem> result = new HashSet<DependencyItem>();
+ for (DependencyItem item : unresolved)
+ {
+ if (state == null || state.equals(item.getWhenRequired()))
+ result.add(item);
+ }
+ return result;
+ }
+ }
}
\ No newline at end of file
Modified: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockModuleFactory.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockModuleFactory.java 2008-12-18 10:28:03 UTC (rev 82358)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/MockModuleFactory.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -41,6 +41,16 @@
return createModule(name, importAll, null, false, urls);
}
+ public static ClassLoaderPolicyModule createModule(String name, BundleInfoBuilder builder, URL... urls) throws Exception
+ {
+ return createModule(name, false, null, null, builder, false, urls);
+ }
+
+ public static ClassLoaderPolicyModule createModule(String name, boolean importAll, String moduleName, URL... urls) throws Exception
+ {
+ return createModule(name, importAll, null, false, urls);
+ }
+
public static ClassLoaderPolicyModule createModule(String name, boolean importAll, String domainName, boolean parentFirst, URL... urls) throws Exception
{
return createModule(name, importAll, domainName, null, parentFirst, urls);
@@ -48,6 +58,11 @@
public static ClassLoaderPolicyModule createModule(String name, boolean importAll, String domainName, String parentDomainName, boolean parentFirst, URL... urls) throws Exception
{
+ return createModule(name, importAll, domainName, parentDomainName, null, parentFirst, urls);
+ }
+
+ public static ClassLoaderPolicyModule createModule(String name, boolean importAll, String domainName, String parentDomainName, BundleInfoBuilder builder, boolean parentFirst, URL... urls) throws Exception
+ {
ClassLoadingMetaData md = new ClassLoadingMetaData();
md.setName(name);
md.setImportAll(importAll);
@@ -55,7 +70,25 @@
{
md.setExportAll(ExportAll.NON_EMPTY);
}
-
+
+ addCapabilitiesAndRequirements(md, builder);
+ setupDomain(md, domainName, parentDomainName, parentFirst);
+
+ MockDeploymentUnit du = new MockDeploymentUnit(name, md, urls);
+ return new VFSDeploymentClassLoaderPolicyModule(du);
+ }
+
+ private static void addCapabilitiesAndRequirements(ClassLoadingMetaData md, BundleInfoBuilder builder)
+ {
+ if (builder != null)
+ {
+ md.getCapabilities().setCapabilities(builder.getCapabilities());
+ md.getRequirements().setRequirements(builder.getRequirements());
+ }
+ }
+
+ private static void setupDomain(ClassLoadingMetaData md, String domainName, String parentDomainName, boolean parentFirst)
+ {
if (domainName != null)
{
md.setDomain(domainName);
@@ -73,8 +106,5 @@
{
md.setDomain(ClassLoaderSystem.DEFAULT_DOMAIN_NAME);
}
-
- MockDeploymentUnit du = new MockDeploymentUnit(name, md, urls);
- return new VFSDeploymentClassLoaderPolicyModule(du);
}
}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/ModuleOrPackageInfo.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/ModuleOrPackageInfo.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/ModuleOrPackageInfo.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -0,0 +1,55 @@
+/*
+* 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.support;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public abstract class ModuleOrPackageInfo
+{
+ private String name;
+
+ private Object version;
+
+ public ModuleOrPackageInfo(String name, Object version)
+ {
+ this.name = name;
+ this.version = version;
+ }
+
+ public ModuleOrPackageInfo(String name)
+ {
+ this(name, null);
+ }
+
+ public String getName()
+ {
+ return name;
+ }
+
+ public Object getVersion()
+ {
+ return version;
+ }
+}
Added: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/RequirementInfo.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/RequirementInfo.java (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/support/RequirementInfo.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -0,0 +1,75 @@
+/*
+* 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.support;
+
+import org.jboss.classloading.spi.version.VersionRange;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class RequirementInfo extends ModuleOrPackageInfo
+{
+ boolean optional;
+ boolean reExport;
+ boolean dynamic;
+
+ public RequirementInfo(String name, VersionRange range)
+ {
+ super(name, range);
+ }
+
+ public RequirementInfo(String name)
+ {
+ super(name);
+ }
+
+ public RequirementInfo(String name, VersionRange range, boolean optional, boolean reExport, boolean dynamic)
+ {
+ super(name, range);
+ this.optional = optional;
+ this.reExport = reExport;
+ this.dynamic = dynamic;
+ }
+
+ @Override
+ public VersionRange getVersion()
+ {
+ return (VersionRange)super.getVersion();
+ }
+
+ public boolean isOptional()
+ {
+ return optional;
+ }
+
+ public boolean isReExport()
+ {
+ return reExport;
+ }
+
+ public boolean isDynamic()
+ {
+ return dynamic;
+ }
+}
Modified: projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTest.java
===================================================================
--- projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTest.java 2008-12-18 10:28:03 UTC (rev 82358)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTest.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -45,6 +45,7 @@
import org.jboss.classloading.spi.dependency.policy.ClassLoaderPolicyModule;
import org.jboss.test.AbstractTestCaseWithSetup;
import org.jboss.test.AbstractTestDelegate;
+import org.jboss.test.aop.classpool.jbosscl.support.BundleInfoBuilder;
import org.jboss.test.aop.classpool.jbosscl.support.MockModuleFactory;
import org.jboss.virtual.VFS;
@@ -177,6 +178,18 @@
return createClassLoader(module);
}
+ protected ClassLoader createClassLoader(String name, BundleInfoBuilder builder, URL... urls) throws Exception
+ {
+ ClassLoaderPolicyModule module = MockModuleFactory.createModule(name, builder, urls);
+ return createClassLoader(module);
+ }
+
+ protected ClassLoader createClassLoader(String name, boolean importAll, String moduleName, URL... urls) throws Exception
+ {
+ ClassLoaderPolicyModule module = MockModuleFactory.createModule(name, importAll, urls);
+ return createClassLoader(module);
+ }
+
protected ClassLoader createClassLoader(String name, boolean importAll, ClassLoader parent, URL... urls) throws Exception
{
ClassLoaderPolicyModule module = MockModuleFactory.createModule(name, importAll, urls);
Added: 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 (rev 0)
+++ projects/aop/trunk/asintegration-mc/src/tests/org/jboss/test/aop/classpool/jbosscl/test/JBossClClassPoolTestSuite.java 2008-12-18 10:33:27 UTC (rev 82359)
@@ -0,0 +1,52 @@
+/*
+* 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 junit.framework.TestSuite;
+import junit.textui.TestRunner;
+
+/**
+ *
+ * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @version $Revision: 1.1 $
+ */
+public class JBossClClassPoolTestSuite extends TestSuite
+{
+ public static void main(String[] args)
+ {
+ TestRunner.run(suite());
+ }
+
+ public static Test suite()
+ {
+ TestSuite suite = new TestSuite("UclClassPool All Tests");
+
+ suite.addTest(ClassLoaderWithRepositorySanityTestCase.suite());
+ suite.addTest(ClassPoolWithRepositoryTestCase.suite());
+// suite.addTest(ClassLoaderWithModuleSanityTestCase.suite());
+
+
+ return suite;
+ }
+
+}
More information about the jboss-cvs-commits
mailing list