@Test public void rejectUnsupportedTypes$toStringFailure() { try { ObjectUtil.toString(Lists.newArrayList()); fail("Should fail on unsupported types"); } catch (ObjectTransformationException e) { assertThat((Object)e.getValueClass(),equalTo((Object)ArrayList.class)); } }
static String toString(Object value) { checkNotNull(value,"Value cannot be null"); return ObjectUtil.findObjectFactory(value.getClass()).toString(value); }
ObjectUtil { static String toString(Object value) { checkNotNull(value,"Value cannot be null"); return ObjectUtil.findObjectFactory(value.getClass()).toString(value); } }
ObjectUtil { static String toString(Object value) { checkNotNull(value,"Value cannot be null"); return ObjectUtil.findObjectFactory(value.getClass()).toString(value); } private  ObjectUtil(); }
ObjectUtil { static String toString(Object value) { checkNotNull(value,"Value cannot be null"); return ObjectUtil.findObjectFactory(value.getClass()).toString(value); } private  ObjectUtil();  }
ObjectUtil { static String toString(Object value) { checkNotNull(value,"Value cannot be null"); return ObjectUtil.findObjectFactory(value.getClass()).toString(value); } private  ObjectUtil();   }