@Test public void toValidJsonArrayShouldConvertToString(){ String to = converter.to(new JsonArray().add(new JsonObject().put("foo","bar"))); Assert.assertNotNull(to); Assert.assertEquals(SOME_VALID_JSON_ARRAY,to); }
@Override public String to(JsonArray userObject) { return userObject==null?null:userObject.encode(); }
JsonArrayConverter implements Converter<String,JsonArray> { @Override public String to(JsonArray userObject) { return userObject==null?null:userObject.encode(); } }
JsonArrayConverter implements Converter<String,JsonArray> { @Override public String to(JsonArray userObject) { return userObject==null?null:userObject.encode(); }  }
JsonArrayConverter implements Converter<String,JsonArray> { @Override public String to(JsonArray userObject) { return userObject==null?null:userObject.encode(); }  @Override JsonArray from(String databaseObject); @Override String to(JsonArray userObject); @Override Class<String> fromType(); @Override Class<JsonArray> toType(); }
JsonArrayConverter implements Converter<String,JsonArray> { @Override public String to(JsonArray userObject) { return userObject==null?null:userObject.encode(); }  @Override JsonArray from(String databaseObject); @Override String to(JsonArray userObject); @Override Class<String> fromType(); @Override Class<JsonArray> toType();  }