Package com.crawl.model

Examples of com.crawl.model.CrawlResultPackageComparator


   
    @Test
    public void test_CrawlResultPackageComparator() {
        logger.debug("CrawlResultPackageComparator");
       
        CrawlResultPackageComparator aCrawlResultPackageComparator=new CrawlResultPackageComparator();
       
        assertTrue(aCrawlResultPackageComparator != null);
    }
View Full Code Here


    public void test_comparator() {
        logger.debug("Test comparator...");
       
        List<CrawlResultPackage> aCrawlResultPackage=new ArrayList<CrawlResultPackage>();
       
        CrawlResultPackageComparator aCrawlResultPackageComparator=new CrawlResultPackageComparator();
        Collections.sort(aCrawlResultPackage, aCrawlResultPackageComparator);
       
        assertTrue(aCrawlResultPackageComparator != null);
    }
View Full Code Here

    public void test_comparator2() {
        logger.debug("Test comparator...");
       
        List<CrawlResultPackage> aCrawlResultPackage=new ArrayList<CrawlResultPackage>();
       
        CrawlResultPackageComparator aCrawlResultPackageComparator=new CrawlResultPackageComparator();
        Collections.sort(aCrawlResultPackage, aCrawlResultPackageComparator);
       
        assertTrue(aCrawlResultPackage.size() == 0);
    }
View Full Code Here

        CrawlResultPackage aCrawlResultPackage2=new CrawlResultPackage();
        aCrawlResultPackage2.setPriceOfItem(1);
        aCrawlResultPackage.add(aCrawlResultPackage2);

        CrawlResultPackageComparator aCrawlResultPackageComparator=new CrawlResultPackageComparator();
        Collections.sort(aCrawlResultPackage, aCrawlResultPackageComparator);
       
        logger.info("aCrawlResultPackage.size()="+aCrawlResultPackage.size());
        assertTrue(aCrawlResultPackage.size() == 2);
    }
View Full Code Here

        aCrawlResultPackage2.setPriceOfItem(1);
        aCrawlResultPackage.add(aCrawlResultPackage2);
       
        assertTrue(aCrawlResultPackage.size() == 2);
       
        CrawlResultPackageComparator aCrawlResultPackageComparator=new CrawlResultPackageComparator();
        Collections.sort(aCrawlResultPackage, aCrawlResultPackageComparator);       
       
        Iterator<CrawlResultPackage> aIt=aCrawlResultPackage.iterator();
       
        CrawlResultPackage aCrawlResultPackageOne=aIt.next();
View Full Code Here

TOP

Related Classes of com.crawl.model.CrawlResultPackageComparator

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.