checkDomain(parent, domain, "Level1", true, true, true);
}
private void checkDomain(AspectManager parent, Domain domain, String name, boolean inheritBindings, boolean inheritDefinitions, boolean isParentFirst)
{
AOPDomain bean = (AOPDomain)getBean(name);
assertSame(domain, bean.getDomain());
assertEquals(inheritBindings, bean.isInheritBindings());
assertEquals(inheritDefinitions, bean.isInheritDefinitions());
assertEquals(isParentFirst, bean.isParentFirst());
if (parent == null)
{
assertNull(bean.getParent());
}
else
{
assertSame(parent, bean.getParent().getDomain());
}
}