/** * Test json conversion of a TestInterface into a TestObject * * @throws Exception the exception */ @Test public void testJsonToObject() throws Exception { String json = "{x:'xValue',y:'yValue'}"; TestObject object = (TestObject) beanJsonConverter.convertToObject(json, TestInterface.class); assertNotNull("expected 'x' field not set after json conversion", object.getX()); assertNotNull("expected 'y' field not set after json conversion", object.getY()); }
/** * Test json conversion of a TestInterface into a TestObject * * @throws Exception the exception */ @Test public void testJsonToObject() throws Exception { String json = "{x:'xValue',y:'yValue'}"; TestObject object = (TestObject) beanJsonConverter.convertToObject(json, TestInterface.class); assertNotNull("expected 'x' field not set after json conversion", object.getX()); assertNotNull("expected 'y' field not set after json conversion", object.getY()); }
/** * Test json conversion of a TestInterface into a TestObject * * @throws Exception the exception */ @Test public void testJsonToObject() throws Exception { String json = "{x:'xValue',y:'yValue'}"; TestObject object = (TestObject) beanJsonConverter.convertToObject(json, TestInterface.class); assertNotNull("expected 'x' field not set after json conversion", object.getX()); assertNotNull("expected 'y' field not set after json conversion", object.getY()); }
/** * Test json conversion of a TestInterface into a TestObject * * @throws Exception the exception */ @Test public void testJsonToObject() throws Exception { String json = "{x:'xValue',y:'yValue'}"; TestObject object = (TestObject) beanJsonConverter.convertToObject(json, TestInterface.class); assertNotNull("expected 'x' field not set after json conversion", object.getX()); assertNotNull("expected 'y' field not set after json conversion", object.getY()); }
/** * Test json conversion of a TestInterface into a TestObject * * @throws Exception the exception */ @Test public void testJsonToObject() throws Exception { String json = "{x:'xValue',y:'yValue'}"; TestObject object = (TestObject) beanJsonConverter.convertToObject(json, TestInterface.class); assertNotNull("expected 'x' field not set after json conversion", object.getX()); assertNotNull("expected 'y' field not set after json conversion", object.getY()); }