Search in sources :

Example 1 with FlatDiffCheckAdapter

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

the class FlatDiffAggregatorTest method testScenario.

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

Aggregations

FlatDiff (com.insightfullogic.honest_profiler.core.aggregation.result.diff.FlatDiff)1 FlatDiffCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.FlatDiffCheckAdapter)1 FlatGenerator (com.insightfullogic.honest_profiler.framework.generator.FlatGenerator)1 Test (org.junit.Test)1