1 package org.jboss.cache.marshall; 2 3 import junit.framework.TestCase; 4 5 public abstract class RegionBasedMarshallingTestBase extends TestCase 6 { 7 protected static final String ADDRESS_CLASSNAME = "org.jboss.cache.marshall.data.Address"; 8 protected static final String PERSON_CLASSNAME = "org.jboss.cache.marshall.data.Person"; 9 10 protected ClassLoader getClassLoader() throws Exception 11 { 12 String [] includesClasses = {PERSON_CLASSNAME, ADDRESS_CLASSNAME}; 13 String [] excludesClasses = {}; 14 ClassLoader cl = Thread.currentThread().getContextClassLoader(); 15 return new SelectedClassnameClassLoader(includesClasses, excludesClasses, cl); 16 } 17 18 19 } 20 | Popular Tags |