Search in sources :

Example 1 with TreeTableViewCheckAdapter

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

the class TreeViewQuickFilterTest method checkResult.

private void checkResult(FxRobot robot, ScenarioStraightFilter... filters) {
    asList(ThreadGrouping.values()).forEach(tg -> {
        asList(FrameGrouping.values()).forEach(fg -> {
            selectThreadGrouping(robot, tg, "#tree");
            selectFrameGrouping(robot, fg, "#tree");
            clickExpandAll(robot, "#tree");
            TreeTableView<Node> tableView = getTreeTableView(robot);
            scenario.checkTreeAggregation(new TreeTableViewCheckAdapter(tg, fg, tableView), filters);
        });
    });
}
Also used : TreeTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeTableViewCheckAdapter) Node(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node)

Example 2 with TreeTableViewCheckAdapter

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

the class TreeViewTest method testTreeViewScenario.

// Actual Test Method
@Test
public void testTreeViewScenario() {
    FxRobot robot = new FxRobot();
    newProfileTab(robot, app(), 0, scenario.getName(), scenario, LOG);
    selectView(robot, TREE);
    selectThreadGrouping(robot, threadGrouping, "#tree");
    selectFrameGrouping(robot, frameGrouping, "#tree");
    clickExpandAll(robot, "#tree");
    TreeTableView<Node> tableView = getTreeTableView(robot);
    runLater(() -> scenario.checkTreeAggregation(new TreeTableViewCheckAdapter(threadGrouping, frameGrouping, tableView)));
}
Also used : TreeTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.TreeTableViewCheckAdapter) Node(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node) FxRobot(org.testfx.api.FxRobot) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) Test(org.junit.Test)

Aggregations

Node (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Node)2 TreeTableViewCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.TreeTableViewCheckAdapter)2 AbstractJavaFxTest (com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest)1 Test (org.junit.Test)1 FxRobot (org.testfx.api.FxRobot)1