4344454647484950515253
ITestBean bean = (ITestBean) ctx.getBean("testBean"); ExceptionHandlingAspect aspect = (ExceptionHandlingAspect) ctx.getBean("aspect"); assertTrue(AopUtils.isAopProxy(bean)); try { bean.unreliableFileOperation(); } catch (IOException e) { // }
212213214215216217218219220221222
itb.getDoctor(); itb.getStringArray(); itb.getSpouses(); itb.setSpouse(new TestBean()); try { itb.unreliableFileOperation(); } catch (IOException ex) { // we don't realy care... } }