Package com.jitlogic.zorka.core.perfmon

Examples of com.jitlogic.zorka.core.perfmon.RankLister


public class RankProcUnitTest extends ZorkaFixture {

    @Test
    public void testCheckForLazyInitialRank() {
        RankLister lister = new TestRankLister("t", "avg1", 5, 4, 3, 2, 1);
        RankList<TestRankItem> rank = new RankList<TestRankItem>(lister, 3, 0, 0, 100);

        assertEquals(0, rank.getNumReranks());
        assertEquals(3, rank.size());
        assertEquals(1, rank.getNumReranks());
View Full Code Here


        assertEquals(1, rank.getNumReranks());
    }

    @Test
    public void testCheckForProperRankOrdering() {
        RankLister lister = new TestRankLister("t", "avg1", 5, 4, 3, 2, 1);
        RankList<TestRankItem> rank = new RankList<TestRankItem>(lister, 3, 0, 0, 100);

        List<TestRankItem> items = rank.list();

        assertEquals(5.0, items.get(0).getAverage(0L, 0, 0), 0.001);
View Full Code Here

TOP

Related Classes of com.jitlogic.zorka.core.perfmon.RankLister

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.