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