Examples of MaxUTFByteLength


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

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

    b.setSvalue("�ѱ�") ;
    assertEquals(true, new MaxUTFByteLength(b, SVALUE, 6).isValid()) ;
    assertEquals(false, new MaxUTFByteLength(b, SVALUE, 5).isValid()) ;

    b.setSvalue("����") ;
    assertEquals(true, new MaxUTFByteLength(b, SVALUE, 6).isValid()) ;
    assertEquals(false, new MaxUTFByteLength(b, SVALUE, 5).isValid()) ;

    b.setSvalue("�ѱ�1") ;
    assertEquals(true, new MaxUTFByteLength(b, SVALUE, 7).isValid()) ;
    assertEquals(false, new MaxUTFByteLength(b, SVALUE, 6).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.