Search in sources :

Example 1 with TreeCheckAdapter

use of com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter in project honest-profiler by jvm-profiling-tools.

the class TreeFilterTest method check.

private <U> void check(TreeGenerator gen, Target target, Comparison comparison, U value, ScenarioStraightFilter filter) {
    try {
        Tree filtered = gen.filter(treeFilter(target, comparison, value));
        scenario.checkTreeAggregation(new TreeCheckAdapter(filtered), filter);
    } catch (AssertionError ae) {
        throw new AssertionError("Failure : Unfiltered =\n" + gen.getTree(), ae);
    }
}
Also used : Tree(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Tree) TreeCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter)

Example 2 with TreeCheckAdapter

use of com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter in project honest-profiler by jvm-profiling-tools.

the class TreeProfileAggregatorTest method testScenario.

// Actual Test Method
@Test
public void testScenario() {
    TreeGenerator gen;
    gen = new TreeGenerator(threadGrouping, frameGrouping);
    scenario.executeAndEnd(gen);
    scenario.checkTreeAggregation(new TreeCheckAdapter(gen.getTree()));
}
Also used : TreeCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter) TreeGenerator(com.insightfullogic.honest_profiler.framework.generator.TreeGenerator) Test(org.junit.Test)

Aggregations

TreeCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.TreeCheckAdapter)2 Tree (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Tree)1 TreeGenerator (com.insightfullogic.honest_profiler.framework.generator.TreeGenerator)1 Test (org.junit.Test)1