Search in sources :

Example 1 with FLAT

use of com.insightfullogic.honest_profiler.ports.javafx.ViewType.FLAT in project honest-profiler by jvm-profiling-tools.

the class FlatViewQuickFilterTest method testFlatQuickFilterScenario.

@Test
public void testFlatQuickFilterScenario() {
    FxRobot robot = new FxRobot();
    newProfileTab(robot, app(), 0, scenario.getName(), scenario, LOG);
    selectView(robot, FLAT);
    focusOn(robot, "#quickFilterText", "#flat");
    robot.write("ba");
    clickQuickFilterButton(robot, "#flat");
    checkResult(robot, keyFlt(s -> s.contains("ba")));
    selectView(robot, FLAT);
    focusOn(robot, "#quickFilterText", "#flat");
    robot.type(BACK_SPACE, BACK_SPACE, ENTER);
    checkResult(robot);
}
Also used : AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) BACK_SPACE(javafx.scene.input.KeyCode.BACK_SPACE) HPFXUtil.focusOn(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.focusOn) RunWith(org.junit.runner.RunWith) Parameters(org.junit.runners.Parameterized.Parameters) HPFXUtil.clickQuickFilterButton(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.clickQuickFilterButton) ParameterUtil.getScenarios(com.insightfullogic.honest_profiler.framework.ParameterUtil.getScenarios) LOG(com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext.ProfileMode.LOG) FlatTableViewCheckAdapter(com.insightfullogic.honest_profiler.framework.checker.FlatTableViewCheckAdapter) Arrays.asList(java.util.Arrays.asList) ScenarioStraightFilter.keyFlt(com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter.keyFlt) Entry(com.insightfullogic.honest_profiler.core.aggregation.result.straight.Entry) FLAT(com.insightfullogic.honest_profiler.ports.javafx.ViewType.FLAT) FxRobot(org.testfx.api.FxRobot) TableView(javafx.scene.control.TableView) ALL_TOGETHER(com.insightfullogic.honest_profiler.core.aggregation.grouping.ThreadGrouping.ALL_TOGETHER) FrameGrouping(com.insightfullogic.honest_profiler.core.aggregation.grouping.FrameGrouping) Parameterized(org.junit.runners.Parameterized) HPFXUtil.newProfileTab(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.newProfileTab) HPFXUtil.selectFrameGrouping(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectFrameGrouping) Collection(java.util.Collection) Test(org.junit.Test) SimplifiedLogScenario(com.insightfullogic.honest_profiler.framework.scenario.SimplifiedLogScenario) HPFXUtil.selectView(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectView) HPFXUtil.getFlatTableView(com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.getFlatTableView) ENTER(javafx.scene.input.KeyCode.ENTER) Ignore(org.junit.Ignore) ScenarioStraightFilter(com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter) FxRobot(org.testfx.api.FxRobot) AbstractJavaFxTest(com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest) Test(org.junit.Test)

Aggregations

FrameGrouping (com.insightfullogic.honest_profiler.core.aggregation.grouping.FrameGrouping)1 ALL_TOGETHER (com.insightfullogic.honest_profiler.core.aggregation.grouping.ThreadGrouping.ALL_TOGETHER)1 Entry (com.insightfullogic.honest_profiler.core.aggregation.result.straight.Entry)1 ParameterUtil.getScenarios (com.insightfullogic.honest_profiler.framework.ParameterUtil.getScenarios)1 FlatTableViewCheckAdapter (com.insightfullogic.honest_profiler.framework.checker.FlatTableViewCheckAdapter)1 ScenarioStraightFilter (com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter)1 ScenarioStraightFilter.keyFlt (com.insightfullogic.honest_profiler.framework.scenario.ScenarioStraightFilter.keyFlt)1 SimplifiedLogScenario (com.insightfullogic.honest_profiler.framework.scenario.SimplifiedLogScenario)1 FLAT (com.insightfullogic.honest_profiler.ports.javafx.ViewType.FLAT)1 AbstractJavaFxTest (com.insightfullogic.honest_profiler.ports.javafx.framework.AbstractJavaFxTest)1 HPFXUtil.clickQuickFilterButton (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.clickQuickFilterButton)1 HPFXUtil.focusOn (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.focusOn)1 HPFXUtil.getFlatTableView (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.getFlatTableView)1 HPFXUtil.newProfileTab (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.newProfileTab)1 HPFXUtil.selectFrameGrouping (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectFrameGrouping)1 HPFXUtil.selectView (com.insightfullogic.honest_profiler.ports.javafx.framework.HPFXUtil.selectView)1 LOG (com.insightfullogic.honest_profiler.ports.javafx.model.ProfileContext.ProfileMode.LOG)1 Arrays.asList (java.util.Arrays.asList)1 Collection (java.util.Collection)1 TableView (javafx.scene.control.TableView)1