RealNumberDataGeneratorBuilder(String property) { super(property); realNumberDataGenerator.setType("Real"); realNumberDataGenerator.setMinimumValue(new BigDecimal(1)); realNumberDataGenerator.setMaximumValue(new BigDecimal(100)); realNumberDataGenerator.setDecimalPlaces(2); }
public RealNumberDataGeneratorBuilder withDecimalPlaces(int decimalPlaces) { if (decimalPlaces < 0) { throw new IllegalArgumentException( "Decimal places value should be a positive value, actual: " + decimalPlaces); } realNumberDataGenerator.setDecimalPlaces(decimalPlaces); return this; }