@Test public void testObjectToStringDeactivated() { Person person = new Person(); person.setAccountLocked(false); person.setAccountDeactivated(true); assertEquals("f", sut.objectToString(person)); }
@Override public String objectToString(final Object inPersonObj) { if (inPersonObj == null) { log.error("Object to convert is null."); return null; } if (!(inPersonObj instanceof Person)) { log.error("Object to convert is not a Person."); return null; } Person person = (Person) inPersonObj; return person.isAccountLocked() || person.isAccountDeactivated() ? "f" : "t"; }
IsPersonVisibleInSearchClassBridge implements StringBridge { @Override public String objectToString(final Object inPersonObj) { if (inPersonObj == null) { log.error("Object to convert is null."); return null; } if (!(inPersonObj instanceof Person)) { log.error("Object to convert is not a Person."); return null; } Person person = (Person) inPersonObj; return person.isAccountLocked() || person.isAccountDeactivated() ? "f" : "t"; } }
IsPersonVisibleInSearchClassBridge implements StringBridge { @Override public String objectToString(final Object inPersonObj) { if (inPersonObj == null) { log.error("Object to convert is null."); return null; } if (!(inPersonObj instanceof Person)) { log.error("Object to convert is not a Person."); return null; } Person person = (Person) inPersonObj; return person.isAccountLocked() || person.isAccountDeactivated() ? "f" : "t"; }  }
IsPersonVisibleInSearchClassBridge implements StringBridge { @Override public String objectToString(final Object inPersonObj) { if (inPersonObj == null) { log.error("Object to convert is null."); return null; } if (!(inPersonObj instanceof Person)) { log.error("Object to convert is not a Person."); return null; } Person person = (Person) inPersonObj; return person.isAccountLocked() || person.isAccountDeactivated() ? "f" : "t"; }  @Override String objectToString(final Object inPersonObj); }
IsPersonVisibleInSearchClassBridge implements StringBridge { @Override public String objectToString(final Object inPersonObj) { if (inPersonObj == null) { log.error("Object to convert is null."); return null; } if (!(inPersonObj instanceof Person)) { log.error("Object to convert is not a Person."); return null; } Person person = (Person) inPersonObj; return person.isAccountLocked() || person.isAccountDeactivated() ? "f" : "t"; }  @Override String objectToString(final Object inPersonObj);  }