[jboss-cvs] JBossAS SVN: r97015 - in projects/jboss-classpool/trunk: src/test/java/org/jboss/test/classpool/jbosscl/test and 28 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 26 05:34:57 EST 2009


Author: flavia.rainone at jboss.com
Date: 2009-11-26 05:34:55 -0500 (Thu, 26 Nov 2009)
New Revision: 97015

Added:
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/jbosscl/test/ArchiveClassPoolTestCase.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/crm/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/crm/CrmFacade.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/BusinessInterface.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/MySLSBean.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ext/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ext/External.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jar/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jar/PlainJavaBean.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jsf/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jsf/JsfBean.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/service/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/service/SomeMBean.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/tif/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/tif/TIFTester.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ui/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ui/UIBean.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/util/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/util/SomeUtil.java
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/web/
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/web/AnyServlet.java
   projects/jboss-classpool/trunk/src/test/resources/archive/
   projects/jboss-classpool/trunk/src/test/resources/archive/ear/
   projects/jboss-classpool/trunk/src/test/resources/archive/ear/META-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/ear/META-INF/application.properties
   projects/jboss-classpool/trunk/src/test/resources/archive/earutil/
   projects/jboss-classpool/trunk/src/test/resources/archive/earutil/META-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/earutil/META-INF/application.properties
   projects/jboss-classpool/trunk/src/test/resources/archive/ejb-jar/
   projects/jboss-classpool/trunk/src/test/resources/archive/ejb-jar/META-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/ejb-jar/META-INF/ejb-jar.xml
   projects/jboss-classpool/trunk/src/test/resources/archive/jarinear/
   projects/jboss-classpool/trunk/src/test/resources/archive/jarinear/META-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/jarinear/META-INF/application.properties
   projects/jboss-classpool/trunk/src/test/resources/archive/sar/
   projects/jboss-classpool/trunk/src/test/resources/archive/sar/META-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/sar/META-INF/jboss-service.xml
   projects/jboss-classpool/trunk/src/test/resources/archive/war/
   projects/jboss-classpool/trunk/src/test/resources/archive/war/WEB-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/war/WEB-INF/web.xml
   projects/jboss-classpool/trunk/src/test/resources/archive/warinear/
   projects/jboss-classpool/trunk/src/test/resources/archive/warinear/META-INF/
   projects/jboss-classpool/trunk/src/test/resources/archive/warinear/META-INF/application.properties
Modified:
   projects/jboss-classpool/trunk/pom.xml
   projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/SupportClasses.java
Log:
[JREFLECT-73] Ported some of the archives and tests that were created as part of JBDEPLOY-216 to jboss-classpool trunk.

Modified: projects/jboss-classpool/trunk/pom.xml
===================================================================
--- projects/jboss-classpool/trunk/pom.xml	2009-11-26 10:30:45 UTC (rev 97014)
+++ projects/jboss-classpool/trunk/pom.xml	2009-11-26 10:34:55 UTC (rev 97015)
@@ -150,7 +150,113 @@
                      <exclude name="org/jboss/test/classpool/support/excluded/replacereferences/parent/ParentCaller.class"/>
                   </fileset>
                 </jar>
+                <!--  ARCHIVES for ARCHIVE TESTS -->
+                <jar destfile="${project.build.directory}/simple.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/jar/**"/>
+                  </fileset>  
+                </jar>
+                <jar destfile="${project.build.directory}/j1.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/jar/**"/>
+                  </fileset>  
+                </jar>
+                <jar destfile="${project.build.directory}/j2.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/jar/**"/>
+                  </fileset>  
+                </jar>
+                <jar destfile="${project.build.directory}/ui.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/ui/**"/>
+                  </fileset>  
+                </jar>
+                <jar destfile="${project.build.directory}/ui_util.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/crm/**"/>
+                  </fileset>  
+                </jar>
+                <mkdir dir="${project.build.directory}/lib"/>
+                <jar destfile="${project.build.directory}/lib/util.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/util/**"/>
+                  </fileset>  
+                </jar>
+                <jar destfile="${project.build.directory}/lib/ext.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/ext/**"/>
+                  </fileset>  
+                </jar>
+                <jar destfile="${project.build.directory}/simple.sar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/service/**"/>
+                  </fileset>
+                  <metainf dir="${project.build.testOutputDirectory}/archive/sar/META-INF"includes="*.xml"/>
+                </jar>
+                <jar destfile="${project.build.directory}/ejbs.jar">
+                  <fileset dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/ejb/**"/>
+                  </fileset>
+                  <metainf dir="${project.build.testOutputDirectory}/archive/ejb-jar/META-INF"includes="*.xml"/>  
+                </jar>
+                <war destfile="${project.build.directory}/simple.war" webxml="${project.build.testOutputDirectory}/archive/war/WEB-INF/web.xml">
+                  <classes dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/web/**"/>
+                  </classes>  
+                </war>
+                <war destfile="${project.build.directory}/simple_ui.war" webxml="${project.build.testOutputDirectory}/archive/war/WEB-INF/web.xml">
+                  <classes dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/web/**"/>
+                  </classes>
+                  <lib dir="${project.build.directory}">
+                     <include name="ui.jar"/>
+                  </lib>
+                </war>
+                <war destfile="${project.build.directory}/jsfapp.war" webxml="${project.build.testOutputDirectory}/archive/war/WEB-INF/web.xml">
+                  <classes dir="${project.build.testOutputDirectory}">
+                     <include name="org/jboss/test/classpool/support/excluded/jsf/**"/>
+                  </classes>
+                  <lib dir="${project.build.directory}">
+                     <include name="ui_util.jar"/>
+                  </lib>
+                </war>
+                <jar destfile="${project.build.directory}/simple.ear">
+                   <fileset dir="${project.build.directory}">
+                      <include name="simple.jar"/>
+                      <include name="ejbs.jar"/>
+                      <include name="simple_ui.war"/>
+                      <include name="jsfapp.war"/>
+                      <include name="simple.sar"/>
+                      <include name="lib/*"/>  
+                   </fileset>
+                   <metainf dir="${project.build.testOutputDirectory}/archive/ear/META-INF"includes="*.properties"/>
+                </jar>
+                <jar destfile="${project.build.directory}/top-level.ear">
+                   <fileset dir="${project.build.directory}">
+                      <include name="lib/*"/>  
+                   </fileset>
+                   <metainf dir="${project.build.testOutputDirectory}/archive/earutil/META-INF"includes="*.properties"/>
+                </jar>
+                <jar destfile="${project.build.directory}/war-in-ear.ear">
+                   <fileset dir="${project.build.directory}">
+                      <include name="simple.war"/>
+                   </fileset>
+                   <metainf dir="${project.build.testOutputDirectory}/archive/warinear/META-INF"includes="*.properties"/>
+                </jar>
+                <jar destfile="${project.build.directory}/jar-in-ear.ear">
+                   <fileset dir="${project.build.directory}">
+                      <include name="simple.jar"/>
+                   </fileset>
+                   <metainf dir="${project.build.testOutputDirectory}/archive/jarinear/META-INF"includes="*.properties"/>
+                </jar>
+                
                 <delete dir="${project.build.testOutputDirectory}/org/jboss/test/classpool/support/excluded"/>
+                <delete dir="${project.build.testOutputDirectory}/archive"/>
+                <delete dir="${project.build.testOutputDirectory}/lib"/>
+                <delete file="${project.build.directory}/ui.jar"/>
+                <delete file="${project.build.directory}/ui_util.jar"/>
+                <delete file="${project.build.directory}/util.jar"/>
+                <delete file="${project.build.directory}/ext.jar"/>
                 
                 <jar destfile="${project.build.directory}/test-weaving-target.jar"
                   basedir="${project.build.testOutputDirectory}" 

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/jbosscl/test/ArchiveClassPoolTestCase.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/jbosscl/test/ArchiveClassPoolTestCase.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/jbosscl/test/ArchiveClassPoolTestCase.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,347 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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.classpool.jbosscl.test;
+
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_A;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_CRM;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_EXT;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_JSF;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_MBEAN;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_PLAIN;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_SERVLET;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_SLS_BEAN;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_SLS_INTERFACE;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_UI;
+import static org.jboss.test.classpool.support.SupportClasses.CLASS_UTIL;
+
+import java.net.URL;
+import java.util.HashMap;
+import java.util.Map;
+
+import javassist.ClassPool;
+import javassist.CtClass;
+import javassist.CtMethod;
+import javassist.NotFoundException;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.test.classpool.support.Result;
+import org.jboss.test.classpool.support.SupportClasses;
+
+
+/**
+ * @author <a href="mailto:flavia.rainone at jboss.org">Flavia Rainone</a>
+ *
+ * @version $Revision$
+ */
+
+public class ArchiveClassPoolTestCase extends JBossClClassPoolTest
+{
+   // TODO refactorate this, extracting this from this class
+   // TODO move the jars to a directory of their own (such as target/test-archives)
+   public final static URL SIMPLE_JAR = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_JAR);
+   public final static URL SIMPLE_SAR = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_SAR);
+   public final static URL EJB_JAR = getURLRelativeToProjectRoot(SupportClasses.EJB_JAR);
+   public final static URL SIMPLE_WAR = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_WAR);
+   public final static URL SIMPLE_EAR_JAR = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_JAR);
+   public final static URL SIMPLE_EAR_SAR = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_SAR);
+   public final static URL SIMPLE_EAR_EJB = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_EJB);
+   public final static URL SIMPLE_EAR_LIB1 = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_LIB1);
+   public final static URL SIMPLE_EAR_LIB2 = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_LIB2);
+   public final static URL SIMPLE_EAR_WAR1 = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_WAR1);
+   public final static URL SIMPLE_EAR_WAR1_CP = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_WAR1_CP);
+   public final static URL SIMPLE_EAR_WAR1_LIB = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_WAR1_LIB);
+   public final static URL SIMPLE_EAR_WAR2 = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_WAR2);
+   public final static URL SIMPLE_EAR_WAR2_CP = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_WAR2_CP);
+   public final static URL SIMPLE_EAR_WAR2_LIB = getURLRelativeToProjectRoot(SupportClasses.SIMPLE_EAR_WAR2_LIB);
+   public final static URL EAR_UTIL1 = getURLRelativeToProjectRoot(SupportClasses.EAR_UTIL1);
+   public final static URL EAR_UTIL2 = getURLRelativeToProjectRoot(SupportClasses.EAR_UTIL2);
+   public final static URL EAR_WAR = getURLRelativeToProjectRoot(SupportClasses.EAR_WAR);
+   public final static URL EAR_WAR_CP = getURLRelativeToProjectRoot(SupportClasses.EAR_WAR_CP);
+   public final static URL EAR_JAR = getURLRelativeToProjectRoot(SupportClasses.EAR_JAR);
+   
+   final static String STRING = String.class.getName();
+   
+   public static Test suite()
+   {
+      return new TestSuite(ArchiveClassPoolTestCase.class);
+   }
+
+   public ArchiveClassPoolTestCase(String name)
+   {
+      super(name);
+   }
+   
+   // TODO do an assertNotFound for all classes not included in the package being tested
+   
+   public void testJar() throws Exception
+   {
+      ClassPool classPool = null;
+      try
+      {
+         classPool = createClassPool("simple.jar", true, SIMPLE_JAR);
+         assertClassPool(classPool, CLASS_PLAIN);
+      }
+      finally
+      {
+         unregisterClassPool(classPool);
+      }
+   }
+   
+   public void testSar() throws Exception
+   {
+      ClassPool classPool = null;
+      Result result = new Result();
+      try
+      {
+         classPool = createClassPool(result, "simple.sar", true, SIMPLE_SAR);
+         assertClassPool(classPool, CLASS_MBEAN);
+      }
+      finally
+      {
+         unregisterClassPool(classPool);
+         assertNoClassPool(result);
+      }
+   }
+   
+   public void testEjbJar() throws Exception
+   {
+      ClassPool classPool = null;
+      try
+      {
+         classPool = createClassPool("ejbs.jar", true, EJB_JAR);
+         assertClassPool(classPool, CLASS_SLS_BEAN, CLASS_SLS_INTERFACE);
+      }
+      finally
+      {
+         unregisterClassPool(classPool);
+      }
+   }
+   
+   public void testWar() throws Exception
+   {
+      ClassPool classPool = null;
+      Result result = new Result();
+      try
+      {
+         classPool = createChildDomainParentLastClassPool(result, "simple.war", "simple.war", true,
+               SIMPLE_WAR);
+         assertClassPool(classPool, CLASS_SERVLET);
+      }
+      finally
+      {
+         unregisterClassPool(classPool);
+         assertNoClassPool(result);
+      }
+   }
+   
+   public void testEar() throws Exception
+   {
+      ClassPool earClassPool = null;
+      ClassPool war1ClassPool = null;
+      ClassPool war2ClassPool = null;
+      Result earResult = new Result();
+      Result war1Result = new Result();
+      Result war2Result = new Result();
+      try
+      {
+         URL[] excludes = {SIMPLE_EAR_WAR1, SIMPLE_EAR_WAR1_CP, SIMPLE_EAR_WAR1_LIB,
+               SIMPLE_EAR_WAR2, SIMPLE_EAR_WAR2_CP, SIMPLE_EAR_WAR2_LIB};
+         earClassPool = createClassPool(earResult, "simple.ear", true, excludes, SIMPLE_EAR_JAR,
+               SIMPLE_EAR_SAR, SIMPLE_EAR_EJB, SIMPLE_EAR_LIB1, SIMPLE_EAR_LIB2);
+         war1ClassPool = createChildDomainParentLastClassPool(war1Result, "simple.ear/simple_ui.war",
+               "simple_ui.war", true, earClassPool, SIMPLE_EAR_WAR1_CP, SIMPLE_EAR_WAR1_LIB);
+         war2ClassPool = createChildDomainParentLastClassPool(war2Result, "simple.ear/jsfapp.war",
+               "simple_ui.war", true, earClassPool, SIMPLE_EAR_WAR2_CP, SIMPLE_EAR_WAR2_LIB);
+         
+         Map<String, ClassPool> classes = new HashMap<String, ClassPool>();
+         classes.put(CLASS_UTIL, earClassPool);
+         classes.put(CLASS_EXT, earClassPool);
+         classes.put(CLASS_PLAIN, earClassPool);
+         classes.put(CLASS_SLS_BEAN, earClassPool);
+         classes.put(CLASS_SLS_INTERFACE, earClassPool);
+         classes.put(CLASS_SERVLET, war1ClassPool);
+         classes.put(CLASS_UI, war1ClassPool);
+         classes.put(CLASS_JSF, war2ClassPool);
+         classes.put(CLASS_CRM, war2ClassPool);
+         classes.put(CLASS_MBEAN, earClassPool);
+         assertClassPool(classes);
+         assertSimpleHierarchy(earClassPool, war1ClassPool);
+      }
+      finally
+      {
+         unregisterClassPool(war1ClassPool);
+         assertNoClassPool(war1Result);
+         unregisterClassPool(war2ClassPool);
+         assertNoClassPool(war2Result);
+         unregisterClassPool(earClassPool);
+         assertNoClassPool(earResult);
+      }
+   }
+   
+   public void testTopLevelWithUtil() throws Exception
+   {
+      ClassPool earClassPool = null;
+      Result earResult = new Result();
+      try
+      {
+         earClassPool = createClassPool(earResult, "top-level.ear", true, EAR_UTIL1, EAR_UTIL2);
+         assertClassPool(earClassPool, CLASS_UTIL, CLASS_EXT);
+      }
+      finally
+      {
+         unregisterClassPool(earClassPool);
+         assertNoClassPool(earResult);
+      }
+   }
+   
+   public void testWarInEar() throws Exception
+   {
+      ClassPool earClassPool = null;
+      ClassPool warClassPool = null;
+      Result earResult = new Result();
+      Result warResult = new Result();
+      try
+      {
+         URL[] excludes = {EAR_WAR, EAR_WAR_CP};
+         earClassPool = createClassPool(earResult, "war-in-ear.ear", true, excludes);
+         warClassPool = createChildDomainParentLastClassPool(warResult, "war-in-ear.ear/simple.war",
+               "simple.war", true, earClassPool, EAR_WAR_CP);
+         Map<String, ClassPool> classes = new HashMap<String, ClassPool>();
+         classes.put(CLASS_SERVLET, warClassPool);
+         assertClassPool(classes);
+      }
+      finally
+      {
+         unregisterClassPool(warClassPool);
+         assertNoClassPool(warResult);
+         unregisterClassPool(earClassPool);
+         assertNoClassPool(earResult);
+      }
+   }
+   
+   public void testJarInEar() throws Exception
+   {
+      ClassPool earClassPool = null;
+      Result earResult = new Result();
+      try
+      {
+         earClassPool = createClassPool(earResult, "jar-in-ear.ear", true, EAR_JAR);
+         assertClassPool(earClassPool, CLASS_PLAIN);
+      }
+      finally
+      {
+         unregisterClassPool(earClassPool);
+         assertNoClassPool(earResult);
+      }
+   }
+   
+   public void testIsolatedJars() throws Exception
+   {
+      ClassPool classPool1 = null;
+      ClassPool classPool2 = null;
+      Result result1 = new Result();
+      Result result2 = new Result();
+      try
+      {
+         classPool1 = createClassPool(result1, "j1.jar", true, JAR_A_1);
+         classPool2 = createClassPool(result2, "j2.jar", true, JAR_A_2);
+         assertIsolated(classPool1, classPool2);
+      }
+      finally
+      {
+         unregisterClassPool(classPool1);
+         assertNoClassPool(result1);
+         unregisterClassPool(classPool2);
+         assertNoClassPool(result2);
+      }
+   }
+   
+   protected void assertClassPool(ClassPool parentClassPool, String... classNames) throws Exception
+   {
+      Map<String, ClassPool> map = new HashMap<String, ClassPool>();
+      for (String className : classNames)
+      {
+         map.put(className, parentClassPool);
+      }
+      assertClassPool(map);
+   }
+   
+   protected void assertClassPool(Map<String, ClassPool> classes) throws Exception
+   {
+      for (Map.Entry<String, ClassPool> entry : classes.entrySet())
+      {
+         String className = entry.getKey();
+         ClassPool classPool = entry.getValue();
+         // sanity check
+         ClassLoader classLoader = classPool.getClassLoader();
+         Class<?> loadedClass = assertLoadClass(className, classLoader);
+         CtClass ctClass = classPool.getCtClass(className);
+         assertNotNull("Class" + className + " retrieved from classloader  " + classLoader + " is null", loadedClass);
+         assertNotNull("Class" + className + " retrieved from pool " + classPool + " is null", ctClass);
+         assertEquals(className, loadedClass.getName());
+         assertEquals(className, ctClass.getName());
+         ClassLoader cl = ctClass.getClassPool().getClassLoader();
+         assertEquals("Class has been loaded by the wrong class loader: " + className,
+               loadedClass.getClassLoader(), cl);
+      }
+   }
+   
+   private void assertSimpleHierarchy(ClassPool topClassPool, ClassPool childClassPool) throws
+      NotFoundException
+   {
+      CtClass ctClass = childClassPool.getCtClass(CLASS_SERVLET);
+      CtMethod ctMethod = ctClass.getDeclaredMethod("getBean");
+      assertNotNull("No such 'getBean' method on " + ctClass, ctMethod);
+
+      CtClass returnCtClass = ctMethod.getReturnType();
+      CtClass returnCtClass2 = topClassPool.getCtClass(CLASS_PLAIN);
+      assertSame(returnCtClass, returnCtClass2);
+   }
+   
+   protected void assertIsolated(ClassPool classPool1, ClassPool classPool2) throws Exception
+   {
+      ClassLoader classLoader1 = classPool1.getClassLoader();;
+      ClassLoader classLoader2 = classPool2.getClassLoader();
+      
+      assertFalse(classLoader1.equals(classLoader2));
+      Class<?> class1 = assertLoadClass(CLASS_A, classLoader1, classLoader1);
+      // FIXME
+      /*Class<?> class2 = assertLoadClass(CLASS_A, classLoader2, classLoader2);
+      assertNotSame("Should NOT be the same " + ClassLoaderUtils.classToString(class1) +" and "
+            + ClassLoaderUtils.classToString(class2), class1, class2);
+      
+      CtClass ctClass1 = classPool1.getCtClass(CLASS_A);
+      CtClass ctClass2 = classPool2.getCtClass(CLASS_A);
+      assertNotSame(ctClass1, ctClass2);
+      
+      ClassPool classPool3 = repository.registerClassLoader(class1.getClassLoader());
+      CtClass ctClass3 = classPool3.getCtClass(CLASS_A);
+      assertEquals(ctClass1, ctClass3);
+
+      ClassPool classPool4 = repository.registerClassLoader(class2.getClassLoader());
+      CtClass ctClass4 = classPool4.getCtClass(class2.getName());
+      assertEquals(ctClass2, ctClass4);
+ 
+      assertNotSame(ctClass3, ctClass4);*/
+   }
+}
\ No newline at end of file


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/jbosscl/test/ArchiveClassPoolTestCase.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Modified: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/SupportClasses.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/SupportClasses.java	2009-11-26 10:30:45 UTC (rev 97014)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/SupportClasses.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -37,15 +37,59 @@
    public final static String JAR_C_1 = "c1.jar";
    public final static String JAR_C_2 = "c2.jar";
    public final static String JAR_D = "d.jar";
+   public final static String SIMPLE_JAR = "simple.jar";
+   public final static String SIMPLE_SAR = "simple.sar";
+   public final static String EJB_JAR = "ejbs.jar";
+   public final static String SIMPLE_WAR = "simple.war/WEB-INF/classes";
+   public final static String SIMPLE_EAR_JAR = "simple.ear/simple.jar";
+   public final static String SIMPLE_EAR_SAR = "simple.ear/simple.sar";
+   public final static String SIMPLE_EAR_EJB = "simple.ear/ejbs.jar";
+   public final static String SIMPLE_EAR_LIB1 = "simple.ear/lib/util.jar";
+   public final static String SIMPLE_EAR_LIB2 = "simple.ear/lib/ext.jar";
+   public final static String SIMPLE_EAR_WAR1 = "simple.ear/simple_ui.war";
+   public final static String SIMPLE_EAR_WAR1_CP = "simple.ear/simple_ui.war/WEB-INF/classes";
+   public final static String SIMPLE_EAR_WAR1_LIB = "simple.ear/simple_ui.war/WEB-INF/lib/ui.jar";
+   public final static String SIMPLE_EAR_WAR2 = "simple.ear/jsfapp.war";
+   public final static String SIMPLE_EAR_WAR2_CP = "simple.ear/jsfapp.war/WEB-INF/classes";
+   public final static String SIMPLE_EAR_WAR2_LIB = "simple.ear/jsfapp.war/WEB-INF/lib/ui_util.jar";
+   public final static String EAR_UTIL1 = "top-level.ear/lib/util.jar";
+   public final static String EAR_UTIL2 = "top-level.ear/lib/ext.jar";
+   public final static String EAR_WAR = "war-in-ear.ear/simple.war";
+   public final static String EAR_WAR_CP = "war-in-ear.ear/simple.war/WEB-INF/classes";
+   public final static String EAR_JAR = "jar-in-ear.ear/simple.jar";
    
+   // TODO map the url to the corresponding package
+   // TODO automatically replace .war by .war/WEB-INF/classes e lib???
+   
    public static final String PACKAGE_ROOT = SupportClasses.class.getPackage().getName() + ".excluded";
    public final static String PACKAGE_A = PACKAGE_ROOT + ".a";
    public final static String PACKAGE_B = PACKAGE_ROOT + ".b";
    public final static String PACKAGE_C = PACKAGE_ROOT + ".c";
    public final static String PACKAGE_D = PACKAGE_ROOT + ".d";
+   public final static String PACKAGE_JAR = PACKAGE_ROOT + ".jar";
+   public final static String PACKAGE_SAR = PACKAGE_ROOT + ".service";
+   public final static String PACKAGE_EJB = PACKAGE_ROOT + ".ejb";
+   public final static String PACKAGE_WEB = PACKAGE_ROOT + ".web";
+   public final static String PACKAGE_JSF = PACKAGE_ROOT + ".jsf";
+   public final static String PACKAGE_UTIL = PACKAGE_ROOT + ".util";
+   public final static String PACKAGE_EXT = PACKAGE_ROOT + ".ext";
+   public final static String PACKAGE_UI = PACKAGE_ROOT + ".ui";
+   public final static String PACKAGE_CRM = PACKAGE_ROOT + ".crm";
    
    public final static String CLASS_A = PACKAGE_A + ".A";
    public final static String CLASS_B = PACKAGE_B + ".B";
    public final static String CLASS_C = PACKAGE_C + ".C";
    public final static String CLASS_D = PACKAGE_D + ".D";
+   public final static String CLASS_PLAIN = PACKAGE_JAR + ".PlainJavaBean";
+   public final static String CLASS_MBEAN = PACKAGE_SAR + ".SomeMBean";
+   public final static String CLASS_SLS_BEAN = PACKAGE_EJB + ".MySLSBean";
+   public final static String CLASS_SLS_INTERFACE = PACKAGE_EJB + ".BusinessInterface";
+   public final static String CLASS_SERVLET = PACKAGE_WEB + ".AnyServlet";
+   public final static String CLASS_JSF = PACKAGE_JSF + ".JsfBean";
+   public final static String CLASS_UTIL = PACKAGE_UTIL + ".SomeUtil";
+   public final static String CLASS_EXT = PACKAGE_EXT + ".External";
+   public final static String CLASS_UI = PACKAGE_UI + ".UIBean";
+   public final static String CLASS_CRM = PACKAGE_CRM + ".CrmFacade";
+   
+   
 }
\ No newline at end of file

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/crm/CrmFacade.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/crm/CrmFacade.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/crm/CrmFacade.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.crm;
+
+/**
+ * 
+ * @author <a href="mailto:flavia.rainone at jboss.org">Flavia Rainone</a>
+ *
+ * @version $Revision$
+ */
+public class CrmFacade
+{
+
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/crm/CrmFacade.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/BusinessInterface.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/BusinessInterface.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/BusinessInterface.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.ejb;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ * 
+ * @version $Revision$
+ */
+public interface BusinessInterface
+{
+   int add(int x, int y);
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/BusinessInterface.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/MySLSBean.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/MySLSBean.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/MySLSBean.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.ejb;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ * 
+ * @version $Revision$
+ */
+public class MySLSBean implements BusinessInterface
+{
+   public int add(int x, int y)
+   {
+      return x + y;
+   }
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ejb/MySLSBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ext/External.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ext/External.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ext/External.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.ext;
+
+/**
+ * @author <a href="mailto:flavia.rainone at jboss.com">Flavia Rainone</a>
+ * 
+ * @version $Revision$
+ */
+public class External
+{
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ext/External.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jar/PlainJavaBean.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jar/PlainJavaBean.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jar/PlainJavaBean.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.jar;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ * 
+ * @version $Revision$
+ */
+public class PlainJavaBean
+{
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jar/PlainJavaBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jsf/JsfBean.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jsf/JsfBean.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jsf/JsfBean.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.jsf;
+
+
+/**
+ * 
+ * @author <a href="mailto:flavia.rainone at jboss.org">Flavia Rainone</a>
+ *
+ * @version $Revision$
+ */
+public class JsfBean
+{
+
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/jsf/JsfBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/service/SomeMBean.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/service/SomeMBean.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/service/SomeMBean.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.service;
+
+/**
+ * 
+ * @author <a href="mailto:flavia.rainone at jboss.org">Flavia Rainone</a>
+ *
+ * @version $Revision$
+ */
+public class SomeMBean
+{
+
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/service/SomeMBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/tif/TIFTester.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/tif/TIFTester.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/tif/TIFTester.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.tif;
+
+import org.jboss.test.classpool.support.excluded.web.AnyServlet;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ */
+public class TIFTester
+{
+   public AnyServlet getAnys()
+   {
+      return new AnyServlet();
+   }
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/tif/TIFTester.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ui/UIBean.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ui/UIBean.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ui/UIBean.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.ui;
+
+/**
+ * 
+ * @author <a href="mailto:flavia.rainone at jboss.org">Flavia Rainone</a>
+ *
+ * @version $Revision$
+ */
+public class UIBean
+{
+
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/ui/UIBean.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/util/SomeUtil.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/util/SomeUtil.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/util/SomeUtil.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.util;
+
+/**
+ * @author <a href="mailto:ales.justin at jboss.org">Ales Justin</a>
+ * 
+ * @version $Revision$
+ */
+public class SomeUtil
+{
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/util/SomeUtil.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/web/AnyServlet.java
===================================================================
--- projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/web/AnyServlet.java	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/web/AnyServlet.java	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, 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.classpool.support.excluded.web;
+
+import org.jboss.test.classpool.support.excluded.jar.PlainJavaBean;
+
+
+
+/**
+ * 
+ * @author <a href="mailto:flavia.rainone at jboss.org">Flavia Rainone</a>
+ *
+ * @version $Revision$
+ */
+public class AnyServlet
+{
+   public PlainJavaBean getBean()
+   {
+      return new PlainJavaBean();
+   }
+}


Property changes on: projects/jboss-classpool/trunk/src/test/java/org/jboss/test/classpool/support/excluded/web/AnyServlet.java
___________________________________________________________________
Name: svn:keywords
   + Author Date Id Revision
Name: svn:eol-style
   + native

Added: projects/jboss-classpool/trunk/src/test/resources/archive/ear/META-INF/application.properties
===================================================================
--- projects/jboss-classpool/trunk/src/test/resources/archive/ear/META-INF/application.properties	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/resources/archive/ear/META-INF/application.properties	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,5 @@
+jar-module=simple.jar
+ejb-module=ejbs.jar
+web-module=simple_ui.war
+jsf-module=jsfapp.war
+sar-module=simple.sar

Added: projects/jboss-classpool/trunk/src/test/resources/archive/earutil/META-INF/application.properties
===================================================================

Added: projects/jboss-classpool/trunk/src/test/resources/archive/ejb-jar/META-INF/ejb-jar.xml
===================================================================
--- projects/jboss-classpool/trunk/src/test/resources/archive/ejb-jar/META-INF/ejb-jar.xml	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/resources/archive/ejb-jar/META-INF/ejb-jar.xml	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,2 @@
+<ejb-jar>
+</ejb-jar>
\ No newline at end of file

Added: projects/jboss-classpool/trunk/src/test/resources/archive/jarinear/META-INF/application.properties
===================================================================
--- projects/jboss-classpool/trunk/src/test/resources/archive/jarinear/META-INF/application.properties	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/resources/archive/jarinear/META-INF/application.properties	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1 @@
+ejb-module=simple.jar

Added: projects/jboss-classpool/trunk/src/test/resources/archive/sar/META-INF/jboss-service.xml
===================================================================
--- projects/jboss-classpool/trunk/src/test/resources/archive/sar/META-INF/jboss-service.xml	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/resources/archive/sar/META-INF/jboss-service.xml	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1 @@
+<server/>

Added: projects/jboss-classpool/trunk/src/test/resources/archive/war/WEB-INF/web.xml
===================================================================
--- projects/jboss-classpool/trunk/src/test/resources/archive/war/WEB-INF/web.xml	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/resources/archive/war/WEB-INF/web.xml	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1,2 @@
+<web>
+</web>
\ No newline at end of file

Added: projects/jboss-classpool/trunk/src/test/resources/archive/warinear/META-INF/application.properties
===================================================================
--- projects/jboss-classpool/trunk/src/test/resources/archive/warinear/META-INF/application.properties	                        (rev 0)
+++ projects/jboss-classpool/trunk/src/test/resources/archive/warinear/META-INF/application.properties	2009-11-26 10:34:55 UTC (rev 97015)
@@ -0,0 +1 @@
+web-module=simple.war




More information about the jboss-cvs-commits mailing list