Package com.proofpoint.stats.SparseCounterStat

Examples of com.proofpoint.stats.SparseCounterStat.Counter


    private void assertPreviousCount(SparseCounterStat counter, double expected)
            throws Exception
    {
        Method method = Bucketed.class.getDeclaredMethod("getPreviousBucket");
        method.setAccessible(true);
        Counter previousBucket = (Counter) method.invoke(counter);
        assertEquals(previousBucket.getCount(), expected);
    }
View Full Code Here


    private void assertPreviousCountNull(SparseCounterStat counter)
            throws Exception
    {
        Method method = Bucketed.class.getDeclaredMethod("getPreviousBucket");
        method.setAccessible(true);
        Counter previousBucket = (Counter) method.invoke(counter);
        assertNull(previousBucket.getCount());
    }
View Full Code Here

TOP

Related Classes of com.proofpoint.stats.SparseCounterStat.Counter

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.