Package net.fp.rp.search.back.extractor.util

Source Code of net.fp.rp.search.back.extractor.util.SpiderTests

/*
* Copyright (C) 2004 Paul Browne, http://www.firstpartners.net,
* built with the help of Fast-Soft (fastsoftdev@yahoo.com)
*
* released under terms of the GPL license
* http://www.opensource.org/licenses/gpl-license.php
*
* This product includes software developed by the
* Apache Software Foundation (http://www.apache.org)."
*
* This product includes software developed by the
* Spring Framework Project (http://www.springframework.org)."
*
*/
package net.fp.rp.search.back.extractor.util;

import net.fp.rp.search.back.extractor.util.Spider;
import net.fp.rp.search.back.extractor.util.UtilExtract;
import junit.framework.TestCase;


/**
* Spidert TestCase
*
* @author Firstpartners.net
* @version 1.4
*/
public class SpiderTests extends TestCase {
    /**
     * Test the spider
     */
    public void test() {
        try {
            Spider spider = new Spider(UtilExtract.getUri(
                        "http://www.google.ie/search?hl=en&lr=&q=www.cnn.com&btnG=Search"),
                    40);
            spider.start();
        } catch (Throwable e) {
            e.printStackTrace(System.out);
            fail();
        }
    }
}
TOP

Related Classes of net.fp.rp.search.back.extractor.util.SpiderTests

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.