// TODO (ips, 3/31/10): The below is a workaround for IntegerRangeConstraint.onLoad() not being called by Hibernate.
irc.setDetails(irc.getDetails());
assert irc.getMaximum() == 10;
assert irc.getMinimum() == -2;
} else if (constraint instanceof FloatRangeConstraint) {
FloatRangeConstraint frc = (FloatRangeConstraint) constraint;
assert frc != null : "Float-constraint was null, but should not be";
// See JBNADM-1596/97
assert frc.getDetails().equals("10.0#5.0");
// TODO (ips, 3/31/10): The below is a workaround for FloatRangeConstraint.onLoad() not being called by Hibernate.
frc.setDetails(frc.getDetails());
assert frc.getMinimum() == 10; // TODO change when JBNADM-1597 is being worked on
assert frc.getMaximum() == 5;
} else {
assert true == false : "Unknown constraint type encountered";
}
}