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