Package com.bleujin.framework.valid.validator

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


    b = new TestBean() ;
  }
 
  public void testLessEqual() throws Exception {
    b.setIvalue(3) ;
    assertEquals(true, new LessEqualInteger(b, IVALUE, 4).isValid()) ;
    assertEquals(true, new LessEqualInteger(b, IVALUE, 3).isValid()) ;
    assertEquals(false, new LessEqualInteger(b, IVALUE, 2).isValid()) ;

    b.setSvalue("3") ;
    assertEquals(true, new LessEqualInteger(b, SVALUE, 4).isValid()) ;
    assertEquals(true, new LessEqualInteger(b, SVALUE, 3).isValid()) ;
    assertEquals(false, new LessEqualInteger(b, SVALUE, 2).isValid()) ;

  }
View Full Code Here

TOP

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

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.