Package com.bleujin.framework.valid.validator

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


  }

 

  public void testMinUTF8ByteLength() throws Exception {
    assertEquals(true, new MinUTFByteLength(b, SVALUE, 0).isValid()) ;

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

    b.setSvalue("�ѱ�") ;
    assertEquals(true, new MinUTFByteLength(b, SVALUE, 6).isValid()) ;
    assertEquals(false, new MinUTFByteLength(b, SVALUE, 7).isValid()) ;
  }
View Full Code Here

TOP

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

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.