@Test public void testToString() throws Exception { ApplicationContextAwareBean applicationContextAwareBean = getBean(ApplicationContextAwareBean.class); System.out.println(PrintUtil.formatTestResult(applicationContextAwareBean)); }
@Override public String toString() { return "ApplicationContextAwareBean{" + "applicationContext=" + applicationContext.getClass().getSimpleName() + '}'; }
ApplicationContextAwareBean implements ApplicationContextAware { @Override public String toString() { return "ApplicationContextAwareBean{" + "applicationContext=" + applicationContext.getClass().getSimpleName() + '}'; } }
ApplicationContextAwareBean implements ApplicationContextAware { @Override public String toString() { return "ApplicationContextAwareBean{" + "applicationContext=" + applicationContext.getClass().getSimpleName() + '}'; }  }
ApplicationContextAwareBean implements ApplicationContextAware { @Override public String toString() { return "ApplicationContextAwareBean{" + "applicationContext=" + applicationContext.getClass().getSimpleName() + '}'; }  @Override void setApplicationContext(ApplicationContext applicationContext); @Override String toString(); }
ApplicationContextAwareBean implements ApplicationContextAware { @Override public String toString() { return "ApplicationContextAwareBean{" + "applicationContext=" + applicationContext.getClass().getSimpleName() + '}'; }  @Override void setApplicationContext(ApplicationContext applicationContext); @Override String toString();  }