@Test public void testToString() throws Exception { AutowiredWithQualifier autowiredWithQualifier = getBean(AutowiredWithQualifier.class); System.out.println(PrintUtil.formatTestResult(autowiredWithQualifier)); }
@Override public String toString() { return "AutowiredWithQualifier{" + "modelOne=" + modelOne + ", modelTwo=" + modelTwo + ", modelThree=" + modelThree + ", models=" + models + ", primaryCandidate=" + primaryCandidate + '}'; }
AutowiredWithQualifier { @Override public String toString() { return "AutowiredWithQualifier{" + "modelOne=" + modelOne + ", modelTwo=" + modelTwo + ", modelThree=" + modelThree + ", models=" + models + ", primaryCandidate=" + primaryCandidate + '}'; } }
AutowiredWithQualifier { @Override public String toString() { return "AutowiredWithQualifier{" + "modelOne=" + modelOne + ", modelTwo=" + modelTwo + ", modelThree=" + modelThree + ", models=" + models + ", primaryCandidate=" + primaryCandidate + '}'; } @Autowired  AutowiredWithQualifier(@Qualifier("plainModelTwoSingleton") AbstractPlainModel modelTwo); }
AutowiredWithQualifier { @Override public String toString() { return "AutowiredWithQualifier{" + "modelOne=" + modelOne + ", modelTwo=" + modelTwo + ", modelThree=" + modelThree + ", models=" + models + ", primaryCandidate=" + primaryCandidate + '}'; } @Autowired  AutowiredWithQualifier(@Qualifier("plainModelTwoSingleton") AbstractPlainModel modelTwo); @Autowired void setModelThree(@Qualifier("plainModelThreeSingleton") AbstractPlainModel modelThree); @Override String toString(); }
AutowiredWithQualifier { @Override public String toString() { return "AutowiredWithQualifier{" + "modelOne=" + modelOne + ", modelTwo=" + modelTwo + ", modelThree=" + modelThree + ", models=" + models + ", primaryCandidate=" + primaryCandidate + '}'; } @Autowired  AutowiredWithQualifier(@Qualifier("plainModelTwoSingleton") AbstractPlainModel modelTwo); @Autowired void setModelThree(@Qualifier("plainModelThreeSingleton") AbstractPlainModel modelThree); @Override String toString();  }