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