Search in sources :

Example 1 with FlatCheckAdapter

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);
    }
}
Also used : FlatCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.FlatCheckAdapter) Flat(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Flat)

Example 2 with FlatCheckAdapter

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()));
}
Also used : FlatCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.FlatCheckAdapter) FlatGenerator(com.insightfullogic.honest_profiler.framework.generator.FlatGenerator) Test(org.junit.Test)

Aggregations

FlatCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.FlatCheckAdapter)2 Flat (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Flat)1 FlatGenerator (com.insightfullogic.honest_profiler.framework.generator.FlatGenerator)1 Test (org.junit.Test)1