Examples of DecimalMinDef


Examples of org.hibernate.validator.cfg.defs.DecimalMinDef

  @Test
  public void testDecimalMinValue() {
    ConstraintMapping mapping = config.createConstraintMapping();
    mapping.type( DecimalMinMaxValidatorBoundaryTest.class )
        .property( "d", FIELD )
        .constraint( new DecimalMinDef().value( "0.100000000000000005" ) );
    config.addMapping( mapping );
    Validator validator = config.buildValidatorFactory().getValidator();

    this.d = 0.1;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.