Package org.apache.roller.business

Examples of org.apache.roller.business.WeblogManager.resetAllHitCounts()


       
        try {
            log.info("task started");
           
            WeblogManager mgr = RollerFactory.getRoller().getWeblogManager();
            mgr.resetAllHitCounts();
            RollerFactory.getRoller().flush();
           
            log.info("task completed");
           
        } catch (RollerException e) {
View Full Code Here


        assertEquals(20, testCount.getDailyHits());
        testCount = mgr.getHitCount(cnt3.getId());
        assertEquals(30, testCount.getDailyHits());
       
        // reset all counts
        mgr.resetAllHitCounts();
        TestUtils.endSession(true);
       
        // make sure it reset all counts
        testCount = mgr.getHitCount(cnt1.getId());
        assertEquals(0, testCount.getDailyHits());
View Full Code Here

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.