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);
}
}
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()));
}
Aggregations