Package com.bleujin.framework.valid.validator

Examples of com.bleujin.framework.valid.validator.Decimal


   
  }
 
  public void testDecimal() throws Exception {
    b.setSvalue("123") ;
    assertEquals(true, new Decimal(b, SVALIE).isValid()) ;
   
    b.setSvalue("-123") ;
    assertEquals(true, new Decimal(b, SVALIE).isValid()) ;

    b.setSvalue("-123.12") ;
    assertEquals(true, new Decimal(b, SVALIE).isValid()) ;
   
    b.setSvalue("-123.") ;
    assertEquals(true, new Decimal(b, SVALIE).isValid()) ;

    b.setSvalue("+12.3.") ;
    assertEquals(false, new Decimal(b, SVALIE).isValid()) ;

  }
View Full Code Here

TOP

Related Classes of com.bleujin.framework.valid.validator.Decimal

Copyright © 2018 www.massapicom. 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.