Пример #1
0
  private void testFileOpen() {
    findMenuItemByText("Open...").click();
    JFileChooserFixture openDialog = JFileChooserFinder.findFileChooser("open").using(robot);
    openDialog.cancel();

    findMenuItemByText("Open...").click();
    openDialog = JFileChooserFinder.findFileChooser("open").using(robot);
    openDialog.selectFile(new File(INPUT_DIR, "b.jpg"));
    openDialog.approve();
  }
Пример #2
0
 private JFileChooserFixture findSaveFileChooser() {
   return JFileChooserFinder.findFileChooser("save").using(robot);
 }