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