Examples of AlphaNum


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

    assertEquals(false, new RegularExpression(b, SVALIE, "^[b-c]+$").isValid()) ;
  }

  public void testAlphaExpression() throws Exception {
    b.setSvalue("abc") ;
    assertEquals(true, new AlphaNum(b, SVALIE).isValid()) ;
    b.setSvalue("abc12") ;
    assertEquals(true, new AlphaNum(b, SVALIE).isValid()) ;
    b.setSvalue("a1bc") ;
    assertEquals(true, new AlphaNum(b, SVALIE).isValid()) ;
    b.setSvalue("ab23c") ;
    assertEquals(true, new AlphaNum(b, SVALIE).isValid()) ;
    b.setSvalue("abc#d") ;
    assertEquals(false, new AlphaNum(b, SVALIE).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.