Search in sources :

Example 1 with FlatDiffTableViewCheckAdapter

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

the class FlatDiffViewTest method testFlatDiffViewScenario.

// Actual Test Method
@Test
public void testFlatDiffViewScenario() {
    FxRobot robot = new FxRobot();
    waitUntil(asyncFx(() -> getMainStage().setMaximized(true)));
    newProfileTab(robot, app(), 0, "Base : " + baseScenario.getName(), baseScenario, LOG);
    newProfileTab(robot, app(), 1, "New : " + newScenario.getName(), newScenario, LOG);
    selectTab(robot, 1);
    selectCtxMenu(robot, "#compareButton", 0, "Base : " + baseScenario.getName());
    selectTab(robot, 2);
    selectView(robot, FLAT);
    selectFrameGrouping(robot, frameGrouping, "#flat");
    TableView<DiffEntry> tableView = getFlatDiffTableView(robot);
    newScenario.checkFlatDiffAggregation(baseScenario, new FlatDiffTableViewCheckAdapter(BY_ID, frameGrouping, tableView));
}
Also used : FlatDiffTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.FlatDiffTableViewCheckAdapter) FxRobot(org.testfx.api.FxRobot) DiffEntry(com.insightfullogic.honest_profiler.core.aggregation.result.diff.DiffEntry) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) Test(org.junit.Test)

Aggregations

DiffEntry (com.insightfullogic.honest_profiler.core.aggregation.result.diff.DiffEntry)1 FlatDiffTableViewCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.FlatDiffTableViewCheckAdapter)1 AbstractJavaFxTest (com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest)1 Test (org.junit.Test)1 FxRobot (org.testfx.api.FxRobot)1