@Test public void testToString() throws Exception { AnnotationConfigApplicationContext context = beanFactory.simpleConstructContainer(); context.getEnvironment().setActiveProfiles("profileDevConfig", "profileProductConfig"); context.register(ProfileXMLUsageBean.class); context.refresh(); ProfileXMLUsageBean profileXMLUsageBean = context.getBean(ProfileXMLUsageBean.class); System.out.println(PrintUtil.formatTestResult(profileXMLUsageBean)); }
@Override public String toString() { return "ProfileXMLUsageBean{" + "plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + ", plainModelThree=" + plainModelThree + ", plainModelFour=" + plainModelFour + ", plainModelFive=" + plainModelFive + ", plainModelSix=" + plainModelSix + '}'; }
ProfileXMLUsageBean { @Override public String toString() { return "ProfileXMLUsageBean{" + "plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + ", plainModelThree=" + plainModelThree + ", plainModelFour=" + plainModelFour + ", plainModelFive=" + plainModelFive + ", plainModelSix=" + plainModelSix + '}'; } }
ProfileXMLUsageBean { @Override public String toString() { return "ProfileXMLUsageBean{" + "plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + ", plainModelThree=" + plainModelThree + ", plainModelFour=" + plainModelFour + ", plainModelFive=" + plainModelFive + ", plainModelSix=" + plainModelSix + '}'; }  }
ProfileXMLUsageBean { @Override public String toString() { return "ProfileXMLUsageBean{" + "plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + ", plainModelThree=" + plainModelThree + ", plainModelFour=" + plainModelFour + ", plainModelFive=" + plainModelFive + ", plainModelSix=" + plainModelSix + '}'; }  @Override String toString(); }
ProfileXMLUsageBean { @Override public String toString() { return "ProfileXMLUsageBean{" + "plainModelOne=" + plainModelOne + ", plainModelTwo=" + plainModelTwo + ", plainModelThree=" + plainModelThree + ", plainModelFour=" + plainModelFour + ", plainModelFive=" + plainModelFive + ", plainModelSix=" + plainModelSix + '}'; }  @Override String toString();  }