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