@Test public void testObjectToStringOnNullInput() { assertNull(sut.objectToString(null)); }
@Override public String objectToString(final Object domainGroupObj) { if (domainGroupObj == null || !(domainGroupObj instanceof DomainGroup)) { return null; } DomainGroup domainGroup = (DomainGroup) domainGroupObj; if (domainGroupMapper == null) { throw new IllegalStateException("static domainGroupMapper must be injected into this class bridge"); } Long[] peopleIds = domainGroupMapper.getFollowerAndCoordinatorPersonIds(domainGroup); StringBuilder sb = new StringBuilder(); for (int i = 0; i < peopleIds.length; i++) { if (i > 0) { sb.append(" "); } sb.append(peopleIds[i]); } return sb.toString(); }
DomainGroupPeopleIdClassBridge implements StringBridge { @Override public String objectToString(final Object domainGroupObj) { if (domainGroupObj == null || !(domainGroupObj instanceof DomainGroup)) { return null; } DomainGroup domainGroup = (DomainGroup) domainGroupObj; if (domainGroupMapper == null) { throw new IllegalStateException("static domainGroupMapper must be injected into this class bridge"); } Long[] peopleIds = domainGroupMapper.getFollowerAndCoordinatorPersonIds(domainGroup); StringBuilder sb = new StringBuilder(); for (int i = 0; i < peopleIds.length; i++) { if (i > 0) { sb.append(" "); } sb.append(peopleIds[i]); } return sb.toString(); } }
DomainGroupPeopleIdClassBridge implements StringBridge { @Override public String objectToString(final Object domainGroupObj) { if (domainGroupObj == null || !(domainGroupObj instanceof DomainGroup)) { return null; } DomainGroup domainGroup = (DomainGroup) domainGroupObj; if (domainGroupMapper == null) { throw new IllegalStateException("static domainGroupMapper must be injected into this class bridge"); } Long[] peopleIds = domainGroupMapper.getFollowerAndCoordinatorPersonIds(domainGroup); StringBuilder sb = new StringBuilder(); for (int i = 0; i < peopleIds.length; i++) { if (i > 0) { sb.append(" "); } sb.append(peopleIds[i]); } return sb.toString(); }  }
DomainGroupPeopleIdClassBridge implements StringBridge { @Override public String objectToString(final Object domainGroupObj) { if (domainGroupObj == null || !(domainGroupObj instanceof DomainGroup)) { return null; } DomainGroup domainGroup = (DomainGroup) domainGroupObj; if (domainGroupMapper == null) { throw new IllegalStateException("static domainGroupMapper must be injected into this class bridge"); } Long[] peopleIds = domainGroupMapper.getFollowerAndCoordinatorPersonIds(domainGroup); StringBuilder sb = new StringBuilder(); for (int i = 0; i < peopleIds.length; i++) { if (i > 0) { sb.append(" "); } sb.append(peopleIds[i]); } return sb.toString(); }  static synchronized void setDomainGroupMapper(final DomainGroupMapper inDomainGroupMapper); @Override String objectToString(final Object domainGroupObj); }
DomainGroupPeopleIdClassBridge implements StringBridge { @Override public String objectToString(final Object domainGroupObj) { if (domainGroupObj == null || !(domainGroupObj instanceof DomainGroup)) { return null; } DomainGroup domainGroup = (DomainGroup) domainGroupObj; if (domainGroupMapper == null) { throw new IllegalStateException("static domainGroupMapper must be injected into this class bridge"); } Long[] peopleIds = domainGroupMapper.getFollowerAndCoordinatorPersonIds(domainGroup); StringBuilder sb = new StringBuilder(); for (int i = 0; i < peopleIds.length; i++) { if (i > 0) { sb.append(" "); } sb.append(peopleIds[i]); } return sb.toString(); }  static synchronized void setDomainGroupMapper(final DomainGroupMapper inDomainGroupMapper); @Override String objectToString(final Object domainGroupObj);  }