Search in sources :

Example 1 with TreeDiffCheckAdapter

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

the class TreeDiffAggregatorTest method testScenario.

// Actual Test Method
@Test
public void testScenario() {
    TreeGenerator baseGen;
    TreeGenerator newGen;
    baseGen = new TreeGenerator(threadGrouping, frameGrouping);
    baseScenario.executeAndEnd(baseGen);
    newGen = new TreeGenerator(threadGrouping, frameGrouping);
    newScenario.executeAndEnd(newGen);
    TreeDiff diff = new TreeDiff();
    diff.set(baseGen.getTree(), newGen.getTree());
    baseScenario.checkTreeDiffAggregation(newScenario, new TreeDiffCheckAdapter(diff));
}
Also used : TreeDiff(com.insightfullogic.honest_profiler.core.aggregation.result.diff.TreeDiff) TreeDiffCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeDiffCheckAdapter) TreeGenerator(com.insightfullogic.honest_profiler.framework.generator.TreeGenerator) Test(org.junit.Test)

Aggregations

TreeDiff (com.insightfullogic.honest_profiler.core.aggregation.result.diff.TreeDiff)1 TreeDiffCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.TreeDiffCheckAdapter)1 TreeGenerator (com.insightfullogic.honest_profiler.framework.generator.TreeGenerator)1 Test (org.junit.Test)1