Package com.bleujin.framework.valid.validator

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


  }

 
  public void testUrl() throws Exception {
    b.setSvalue("http://abc.com") ;
    assertEquals(true, new Url(b, SVALIE).isValid()) ;

    b.setSvalue("http://abc.com/111.htm") ;
    assertEquals(true, new Url(b, SVALIE).isValid()) ;

    b.setSvalue("http://abc.com/111.asp?adcd=ccd&acd=cd") ;
    assertEquals(true, new Url(b, SVALIE).isValid()) ;

    b.setSvalue("http://abc.com/111.htm?adcd=�ѱ�") ;
    assertEquals(false, new Url(b, SVALIE).isValid()) ;

    b.setSvalue("http://abc.com/111.asp?adcd=%20&acd=cd#addd") ;
    assertEquals(true, new Url(b, SVALIE).isValid()) ;
}
View Full Code Here

TOP

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

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.