Package com.bleujin.framework.valid.validator

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


    assertEquals(true, new Email(b, SVALIE).isValid()) ;
  }

  public void testIpAddress() throws Exception {
    b.setSvalue("1.1.1.1") ;
    assertEquals(true, new IpAddress(b, SVALIE).isValid()) ;

    b.setSvalue("12.12.dd.11") ;
    assertEquals(false, new IpAddress(b, SVALIE).isValid()) ;

    b.setSvalue("abc@ddd") ;
    assertEquals(false, new IpAddress(b, SVALIE).isValid()) ;

    b.setSvalue("400.22.22.22") ;
    assertEquals(false, new IpAddress(b, SVALIE).isValid()) ;
  }
View Full Code Here

TOP

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

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.