Examples of BetweenLength


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

    assertEquals(true, new MinLength(b, SVALUE, 2).isValid()) ;
    assertEquals(false, new MinLength(b, SVALUE, 3).isValid()) ;
  }

  public void testBetweenLength() throws Exception {
    assertEquals(true, new BetweenLength(b, SVALUE, 0, 3).isValid()) ;

    b.setSvalue("abc") ;
    assertEquals(true, new BetweenLength(b, SVALUE, 1, 3).isValid()) ;
    assertEquals(false, new BetweenLength(b, SVALUE, 1, 2).isValid()) ;

    b.setSvalue("�ѱ�") ;
    assertEquals(true, new BetweenLength(b, SVALUE, 1, 2).isValid()) ;
    assertEquals(false, new BetweenLength(b, SVALUE, 0, 1).isValid()) ;

  }
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.