Search in sources :

Example 1 with BaseRobot

use of org.testfx.robot.BaseRobot in project TestFX by TestFX.

the class WriteRobotImplTest method setup.

@Before
public void setup() throws Exception {
    stage = FxToolkit.registerStage(Stage::new);
    scene = FxToolkit.setupScene(() -> new Scene(new Region()));
    baseRobot = mock(BaseRobot.class);
    sleepRobot = mock(SleepRobot.class);
    windowFinder = mock(WindowFinder.class);
    writeRobot = new WriteRobotImpl(baseRobot, sleepRobot, windowFinder);
}
Also used : SleepRobot(org.testfx.robot.SleepRobot) Region(javafx.scene.layout.Region) WindowFinder(org.testfx.service.finder.WindowFinder) Scene(javafx.scene.Scene) BaseRobot(org.testfx.robot.BaseRobot) Before(org.junit.Before)

Aggregations

Scene (javafx.scene.Scene)1 Region (javafx.scene.layout.Region)1 Before (org.junit.Before)1 BaseRobot (org.testfx.robot.BaseRobot)1 SleepRobot (org.testfx.robot.SleepRobot)1 WindowFinder (org.testfx.service.finder.WindowFinder)1