Package com.bleujin.framework.valid.validator

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


  }
 
 
  public void testDate() throws Exception {
    b.setSvalue("20020102-121121") ;
    assertEquals(true, new DateFormatString(b, SVALUE).isValid()) ;

    b.setSvalue("20020102-181121") ;
    assertEquals(true, new DateFormatString(b, SVALUE).isValid()) ;

    b.setSvalue("20020102-097521") ;
    assertEquals(true, new DateFormatString(b, SVALUE).isValid()) ;

    b.setSvalue("20020102") ;
    assertEquals(false, new DateFormatString(b, SVALUE).isValid()) ;
    assertEquals(true, new DateFormatString(b, SVALUE, "yyyyMMdd").isValid()) ;
   
  }
View Full Code Here

TOP

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

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.