super(name);
}
public void testDomainWithParentInheritance()
{
Domain parentFirst = getDomainAndCheck("Level2ParentFirst", true, true, true);
List<AnnotationIntroduction> overridesFirst = parentFirst.getAnnotationOverrides();
assertEquals(2, overridesFirst.size());
assertNotNull(parentFirst.getClassMetaDataLoaders());
assertEquals(1, parentFirst.getClassMetaDataLoaders().size());
Domain parentLast = getDomainAndCheck("Level2ParentLast", true, true, false);
List<AnnotationIntroduction> overridesLast = parentLast.getAnnotationOverrides();
assertEquals(2, overridesLast.size());
assertNotNull(parentLast.getClassMetaDataLoaders());
assertEquals(1, parentLast.getClassMetaDataLoaders().size());
assertEquals(overridesFirst.get(0).getOriginalAnnotationExpr(), overridesLast.get(1).getOriginalAnnotationExpr());
assertEquals(overridesFirst.get(1).getOriginalAnnotationExpr(), overridesLast.get(0).getOriginalAnnotationExpr());
}