@Test public void testUpperBound() { BigDecimal testInput = BigDecimal.valueOf(163.80); int expectedValue = 8190; assertEquals(expectedValue, VelocityBuilder.velocity(testInput)); }
public static int velocity(BigDecimal vel) { int convertedValue = 8191; if (vel != null) { convertedValue = vel.multiply(BigDecimal.valueOf(50)).intValue(); } return convertedValue; }
VelocityBuilder { public static int velocity(BigDecimal vel) { int convertedValue = 8191; if (vel != null) { convertedValue = vel.multiply(BigDecimal.valueOf(50)).intValue(); } return convertedValue; } }
VelocityBuilder { public static int velocity(BigDecimal vel) { int convertedValue = 8191; if (vel != null) { convertedValue = vel.multiply(BigDecimal.valueOf(50)).intValue(); } return convertedValue; } private  VelocityBuilder(); }
VelocityBuilder { public static int velocity(BigDecimal vel) { int convertedValue = 8191; if (vel != null) { convertedValue = vel.multiply(BigDecimal.valueOf(50)).intValue(); } return convertedValue; } private  VelocityBuilder(); static int velocity(BigDecimal vel); }
VelocityBuilder { public static int velocity(BigDecimal vel) { int convertedValue = 8191; if (vel != null) { convertedValue = vel.multiply(BigDecimal.valueOf(50)).intValue(); } return convertedValue; } private  VelocityBuilder(); static int velocity(BigDecimal vel);  }