Package org.htmlparser.util

Examples of org.htmlparser.util.LinkProcessor


        super(name);
    }

    protected void setUp()
    {
        lp = new LinkProcessor();
    }
View Full Code Here


    public void test1() throws ParserException
    {
        assertEquals(
            "test1 failed",
            "https:h",
            (new LinkProcessor()).extract("https:h", baseURI));
    }
View Full Code Here

    public void test2() throws ParserException
    {
        assertEquals(
            "test2 failed",
            "http://a/b/c/g",
            (new LinkProcessor()).extract("g", baseURI));
    }
View Full Code Here

    public void test3() throws ParserException
    {
        assertEquals(
            "test3 failed",
            "http://a/b/c/g",
            (new LinkProcessor()).extract("./g", baseURI));
    }
View Full Code Here

    public void test4() throws ParserException
    {
        assertEquals(
            "test4 failed",
            "http://a/b/c/g/",
            (new LinkProcessor()).extract("g/", baseURI));
    }
View Full Code Here

    public void test5() throws ParserException
    {
        assertEquals(
            "test5 failed",
            "http://a/g",
            (new LinkProcessor()).extract("/g", baseURI));
    }
View Full Code Here

    public void test6() throws ParserException
    {
        assertEquals(
            "test6 failed",
            "http://g",
            (new LinkProcessor()).extract("//g", baseURI));
    }
View Full Code Here

    public void test7() throws ParserException
    {
        assertEquals(
            "test7 failed",
            "http://a/b/c/?y",
            (new LinkProcessor()).extract("?y", baseURI));
    }
View Full Code Here

    public void test8() throws ParserException
    {
        assertEquals(
            "test8 failed",
            "http://a/b/c/g?y",
            (new LinkProcessor()).extract("g?y", baseURI));
    }
View Full Code Here

    public void test9() throws ParserException
    {
        assertEquals(
            "test9 failed",
            "https:h",
            (new LinkProcessor()).extract("https:h", baseURI));
    }
View Full Code Here

TOP

Related Classes of org.htmlparser.util.LinkProcessor

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.