use of com.insightfullogic.honest_profiler.framework.checker.FlatCheckAdapter in project honest-profiler by jvm-profiling-tools.
the class FlatFilterTest method check.
private <U> void check(FlatGenerator gen, Target target, Comparison comparison, U value, ScenarioStraightFilter filter) {
try {
Flat filtered = gen.filter(flatFilter(target, comparison, value));
scenario.checkFlatAggregation(new FlatCheckAdapter(filtered), filter);
} catch (AssertionError ae) {
throw new AssertionError("Failure : Unfiltered =\n" + gen.getFlat(), ae);
}
}
use of com.insightfullogic.honest_profiler.framework.checker.FlatCheckAdapter in project honest-profiler by jvm-profiling-tools.
the class FlatProfileAggregatorTest method testScenario.
// Actual Test Method
@Test
public void testScenario() {
FlatGenerator gen;
gen = new FlatGenerator(threadGrouping, frameGrouping);
scenario.executeAndEnd(gen);
scenario.checkFlatAggregation(new FlatCheckAdapter(gen.getFlat()));
}
Aggregations