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