@Test public void deserialize_shouldCreateValidObject() { SimpleObject expected = SimpleObjectMother.createInstanceWithDateChanged( TEST_DATE_CHANGE, true, true); String json = SyncConfigurationUtils.readResourceFile(EXPECTED_SIMPLE_OBJECT_FILE); SimpleObject actual = SimpleObjectSerializationUtils.deserialize(json); Assert.assertNotNull(actual); Assert.assertEquals(expected, actual); }
public static SimpleObject deserialize(String simpleObject) { try { return SimpleObject.parseJson(simpleObject); } catch (IOException e) { throw new SerializationException("IOException while deserialize object data", e); } }
SimpleObjectSerializationUtils { public static SimpleObject deserialize(String simpleObject) { try { return SimpleObject.parseJson(simpleObject); } catch (IOException e) { throw new SerializationException("IOException while deserialize object data", e); } } }
SimpleObjectSerializationUtils { public static SimpleObject deserialize(String simpleObject) { try { return SimpleObject.parseJson(simpleObject); } catch (IOException e) { throw new SerializationException("IOException while deserialize object data", e); } } private  SimpleObjectSerializationUtils(); }
SimpleObjectSerializationUtils { public static SimpleObject deserialize(String simpleObject) { try { return SimpleObject.parseJson(simpleObject); } catch (IOException e) { throw new SerializationException("IOException while deserialize object data", e); } } private  SimpleObjectSerializationUtils(); static String serialize(SimpleObject simpleObject); static SimpleObject deserialize(String simpleObject); static SimpleObject clone(SimpleObject simpleObject); }
SimpleObjectSerializationUtils { public static SimpleObject deserialize(String simpleObject) { try { return SimpleObject.parseJson(simpleObject); } catch (IOException e) { throw new SerializationException("IOException while deserialize object data", e); } } private  SimpleObjectSerializationUtils(); static String serialize(SimpleObject simpleObject); static SimpleObject deserialize(String simpleObject); static SimpleObject clone(SimpleObject simpleObject);  }