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