@Test public void should_Find_Visible_JFileChooser_By_Type_With_Timeout() { robot.showWindow(window); launchFileChooser(200); JFileChooserFixture fileChooser = fixture.fileChooser(timeout(300)); assertThat(fileChooser.target()).isSameAs(window.fileChooser()); }
@Test public void should_Find_Visible_JFileChooser_By_Name() { robot.showWindow(window); launchFileChooserNow(); JFileChooserFixture fileChooser = fixture.fileChooser("fileChooser"); assertThat(fileChooser.target()).isSameAs(window.fileChooser()); }
@Override protected final void onSetUp() { window = JFileChooserLauncherWindow.createNew(getClass()); fixture = new ContainerFixture(robot, window); }
private void launchFileChooser(int delay) { window.launchDelay(delay); fixture.button("browse").click(); }