@Test public void convertBackAndForthShouldMaintainProperties(){ JsonObject json = new JsonObject().put("foo","someFoo").put("bar",123).put("baz",true); Object jsonAsObject = binding.converter().to(json); Assert.assertEquals(json, binding.converter().from(jsonAsObject)); }
@Override public Converter<Object, JsonObject> converter() { return CONVERTER; }
ObjectToJsonObjectBinding implements Binding<Object, JsonObject> { @Override public Converter<Object, JsonObject> converter() { return CONVERTER; } }
ObjectToJsonObjectBinding implements Binding<Object, JsonObject> { @Override public Converter<Object, JsonObject> converter() { return CONVERTER; }  }
ObjectToJsonObjectBinding implements Binding<Object, JsonObject> { @Override public Converter<Object, JsonObject> converter() { return CONVERTER; }  @Override Converter<Object, JsonObject> converter(); @Override void sql(BindingSQLContext<JsonObject> ctx); @Override void register(BindingRegisterContext<JsonObject> ctx); @Override void set(BindingSetStatementContext<JsonObject> ctx); @Override void get(BindingGetResultSetContext<JsonObject> ctx); @Override void get(BindingGetStatementContext<JsonObject> ctx); @Override void set(BindingSetSQLOutputContext<JsonObject> ctx); @Override void get(BindingGetSQLInputContext<JsonObject> ctx); }
ObjectToJsonObjectBinding implements Binding<Object, JsonObject> { @Override public Converter<Object, JsonObject> converter() { return CONVERTER; }  @Override Converter<Object, JsonObject> converter(); @Override void sql(BindingSQLContext<JsonObject> ctx); @Override void register(BindingRegisterContext<JsonObject> ctx); @Override void set(BindingSetStatementContext<JsonObject> ctx); @Override void get(BindingGetResultSetContext<JsonObject> ctx); @Override void get(BindingGetStatementContext<JsonObject> ctx); @Override void set(BindingSetSQLOutputContext<JsonObject> ctx); @Override void get(BindingGetSQLInputContext<JsonObject> ctx);  }