Search in sources :

Example 1 with TreeDiffTableViewCheckAdapter

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

the class TreeDiffViewTest method testTreeDiffViewScenario.

// Actual Test Method
@Test
public void testTreeDiffViewScenario() {
    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, TREE);
    selectFrameGrouping(robot, frameGrouping, "#tree");
    selectThreadGrouping(robot, threadGrouping, "#tree");
    clickExpandAll(robot, "#tree");
    TreeTableView<DiffNode> tableView = getTreeDiffTableView(robot);
    newScenario.checkTreeDiffAggregation(baseScenario, new TreeDiffTableViewCheckAdapter(threadGrouping, frameGrouping, tableView));
}
Also used : TreeDiffTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeDiffTableViewCheckAdapter) DiffNode(com.insightfullogic.honest_profiler.core.aggregation.result.diff.DiffNode) FxRobot(org.testfx.api.FxRobot) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) Test(org.junit.Test)

Aggregations

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