@Test public void testBundle() { Assert.assertTrue(ConstraintsConverter.newBundle().getSupportedJavaConstraints().contains(Root.class)); Assert.assertTrue(ConstraintsConverter.newBundle().getSupportedJSONConstraints().contains(new RootConverter().getJSONId())); }
@Override public String getJSONId() { return "root"; }
RootConverter implements ConstraintConverter<Root> { @Override public String getJSONId() { return "root"; } }
RootConverter implements ConstraintConverter<Root> { @Override public String getJSONId() { return "root"; }  }
RootConverter implements ConstraintConverter<Root> { @Override public String getJSONId() { return "root"; }  @Override Class<Root> getSupportedConstraint(); @Override String getJSONId(); @Override Root fromJSON(Model mo, JSONObject o); @Override JSONObject toJSON(Root o); }
RootConverter implements ConstraintConverter<Root> { @Override public String getJSONId() { return "root"; }  @Override Class<Root> getSupportedConstraint(); @Override String getJSONId(); @Override Root fromJSON(Model mo, JSONObject o); @Override JSONObject toJSON(Root o);  }