}
public void testParentLast() throws Exception
{
ClassPool clParentA = null;
Result resultParentA = new Result();
try
{
clParentA = createClassPool(resultParentA, "aParent", true, JAR_A_1);
assertLoadCtClass(CLASS_A, clParentA);
assertCannotLoadCtClass(CLASS_B, clParentA);
ClassPool poolChildA = null;
Result resultChildA = new Result();
final String childDomainName = "ChildDomain";
try
{
poolChildA = createChildDomainParentLastClassPool(resultChildA, "aChild", childDomainName, true, JAR_A_2);
assertLoadCtClass(CLASS_A, clParentA);
assertLoadCtClass(CLASS_A, poolChildA);
assertCannotLoadCtClass(CLASS_B, poolChildA);
ClassPool poolB = null;
Result resultB = new Result();
try
{
BundleInfoBuilder builderB = BundleInfoBuilder.getBuilder().
createRequirePackage(PACKAGE_A);
poolB = createChildDomainParentLastClassPool(resultB, "b", childDomainName, builderB, JAR_B_1);