// @Test @Ignore public void nestedAspectBeanEqualsAspectsBeanChild() throws Exception { final AspectManager manager = getFirstBeanOfType(applicationContext, AspectManager.class); final DtsTransactionAspect aspectBean = getFirstBeanOfType(applicationContext, DtsTransactionAspect.class); if (log.isDebugEnabled()) { log.debug("manager.children " + manager.getAspects()); log.debug("aspectBean " + aspectBean); } assertTrue( "DtsTransactionAspect bean was not found in the AspectManager children list", manager.getAspects().contains(aspectBean)); }
/** * Test the <code>aspects</code> schema element as a top-level element in a Spring context file. * * @throws Exception */ @SuppressWarnings("boxing") @Ignore // @Test public void aspectsTopLevelElement() throws Exception { final Class<AspectManager> elementType = AspectManager.class; final String elementName = "aspects"; final AspectManager topLevelBean = getFirstBeanOfType(applicationContext, elementType); assertNotNull( "Top level schema element " + elementName + " was not created by Spring", topLevelBean); assertThat( "Nested beans were not properly set on the top level bean by Spring", topLevelBean.getAspects().size(), greaterThanOrEqualTo(1)); }