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