Package com.crawl.model

Examples of com.crawl.model.CrawlResultPackage


   
    @Test
    public void test_CrawlResultPackage_item() {
        logger.debug("Test CrawlResultPackage...item");
       
        CrawlResultPackage d= new CrawlResultPackage();
        d.setItem("A");
       
        assertTrue(d.getItem().compareTo("A") == 0);
    }
View Full Code Here


   
    @Test
    public void test_CrawlResultPackage_line() {
        logger.debug("Test CrawlResultPackage...line");
       
        CrawlResultPackage d= new CrawlResultPackage();
        d.setLine("B");
       
        assertTrue(d.getLine().compareTo("B") == 0);
    }
View Full Code Here

   
    @Test
    public void test_CrawlResultPackage_locations() {
        logger.debug("Test CrawlResultPackage...locations");
       
        CrawlResultPackage d= new CrawlResultPackage();

        Collection<String> aCollString=new ArrayList<String>();
        aCollString.add("One");
       
        d.setLocations(aCollString);

        Collection<String> aRetColl=d.getLocations();
       
        assertTrue(aRetColl!=null);
        assertTrue(aRetColl.size()==1);
       
        for (String aString:aRetColl){
View Full Code Here

   
    @Test
    public void test_CrawlResultPackage_url() {
        logger.debug("Test CrawlResultPackage...url");
       
        CrawlResultPackage d= new CrawlResultPackage();
        d.setUrl("www.scu.edu");
       
        assertTrue(d.getUrl().compareTo("www.scu.edu") == 0);
    }
View Full Code Here

   
    @Test
    public void test_CrawlResultPackage_toString() {
        logger.debug("Test CrawlResultPackage...toString");
       
        CrawlResultPackage d= new CrawlResultPackage();
        d.setItem("A");
        d.setLine("B");
        Collection<String> aCollString=new ArrayList<String>();
        aCollString.add("One");
       
        d.setLocations(aCollString);
        d.setPriceOfItem(1000);
        d.setUrl("www.scu.edu");
               
        String aToString=d.toString();
       
        logger.debug("aToString="+aToString+" length="+aToString.length());
       
        assertTrue(d.toString().length() == 175);
    }
View Full Code Here

TOP

Related Classes of com.crawl.model.CrawlResultPackage

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.