Search in sources :

Example 1 with FlatTableViewCheckAdapter

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

the class FlatViewQuickFilterTest method checkResult.

private void checkResult(FxRobot robot, ScenarioStraightFilter... filters) {
    asList(FrameGrouping.values()).forEach(fg -> {
        selectFrameGrouping(robot, fg, "#flat");
        TableView<Entry> tableView = getFlatTableView(robot);
        scenario.checkFlatAggregation(new FlatTableViewCheckAdapter(ALL_TOGETHER, fg, tableView), filters);
    });
}
Also used : Entry(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Entry) FlatTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.FlatTableViewCheckAdapter)

Example 2 with FlatTableViewCheckAdapter

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

the class FlatViewTest method testFlatViewScenario.

// Actual Test Method
@Test
public void testFlatViewScenario() {
    FxRobot robot = new FxRobot();
    newProfileTab(robot, app(), 0, scenario.getName(), scenario, LOG);
    selectView(robot, FLAT);
    selectFrameGrouping(robot, frameGrouping, "#flat");
    TableView<Entry> tableView = getFlatTableView(robot);
    runLater(() -> scenario.checkFlatAggregation(new FlatTableViewCheckAdapter(BY_ID, frameGrouping, tableView)));
}
Also used : Entry(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Entry) FxRobot(org.testfx.api.FxRobot) FlatTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.FlatTableViewCheckAdapter) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) Test(org.junit.Test)

Aggregations

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