@Test public void testObjectToStringWrongType() { assertNull(sut.objectToString(new Person())); }
@Override public String objectToString(final Object inActivityObj) { if (inActivityObj == null || !(inActivityObj instanceof Activity)) { log.error("Found either null Activity or wrong type."); return null; } Activity activity = (Activity) inActivityObj; return activity.getIsDestinationStreamPublic() ? "t" : "f"; }
IsActivityPublicClassBridge implements StringBridge { @Override public String objectToString(final Object inActivityObj) { if (inActivityObj == null || !(inActivityObj instanceof Activity)) { log.error("Found either null Activity or wrong type."); return null; } Activity activity = (Activity) inActivityObj; return activity.getIsDestinationStreamPublic() ? "t" : "f"; } }
IsActivityPublicClassBridge implements StringBridge { @Override public String objectToString(final Object inActivityObj) { if (inActivityObj == null || !(inActivityObj instanceof Activity)) { log.error("Found either null Activity or wrong type."); return null; } Activity activity = (Activity) inActivityObj; return activity.getIsDestinationStreamPublic() ? "t" : "f"; }  }
IsActivityPublicClassBridge implements StringBridge { @Override public String objectToString(final Object inActivityObj) { if (inActivityObj == null || !(inActivityObj instanceof Activity)) { log.error("Found either null Activity or wrong type."); return null; } Activity activity = (Activity) inActivityObj; return activity.getIsDestinationStreamPublic() ? "t" : "f"; }  @Override String objectToString(final Object inActivityObj); }
IsActivityPublicClassBridge implements StringBridge { @Override public String objectToString(final Object inActivityObj) { if (inActivityObj == null || !(inActivityObj instanceof Activity)) { log.error("Found either null Activity or wrong type."); return null; } Activity activity = (Activity) inActivityObj; return activity.getIsDestinationStreamPublic() ? "t" : "f"; }  @Override String objectToString(final Object inActivityObj);  }