@Test public void serialize_shouldCreateValidJson() { String expected = SyncConfigurationUtils.readResourceFile(EXPECTED_SIMPLE_OBJECT_FILE); SimpleObject simpleObject = SimpleObjectMother.createInstanceWithDateChanged( TEST_DATE_CHANGE, true, false); String actual = SimpleObjectSerializationUtils.serialize(simpleObject); actual += System.getProperty("line.separator"); Assert.assertNotNull(actual); Assert.assertEquals(expected, actual); }
public static String serialize(SimpleObject simpleObject) { SimpleObjectMessageConverter converter = new SimpleObjectMessageConverter(); return converter.convertToJson(simpleObject); }
SimpleObjectSerializationUtils { public static String serialize(SimpleObject simpleObject) { SimpleObjectMessageConverter converter = new SimpleObjectMessageConverter(); return converter.convertToJson(simpleObject); } }
SimpleObjectSerializationUtils { public static String serialize(SimpleObject simpleObject) { SimpleObjectMessageConverter converter = new SimpleObjectMessageConverter(); return converter.convertToJson(simpleObject); } private  SimpleObjectSerializationUtils(); }
SimpleObjectSerializationUtils { public static String serialize(SimpleObject simpleObject) { SimpleObjectMessageConverter converter = new SimpleObjectMessageConverter(); return converter.convertToJson(simpleObject); } private  SimpleObjectSerializationUtils(); static String serialize(SimpleObject simpleObject); static SimpleObject deserialize(String simpleObject); static SimpleObject clone(SimpleObject simpleObject); }
SimpleObjectSerializationUtils { public static String serialize(SimpleObject simpleObject) { SimpleObjectMessageConverter converter = new SimpleObjectMessageConverter(); return converter.convertToJson(simpleObject); } private  SimpleObjectSerializationUtils(); static String serialize(SimpleObject simpleObject); static SimpleObject deserialize(String simpleObject); static SimpleObject clone(SimpleObject simpleObject);  }