Exemplo n.º 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();
  }
Exemplo n.º 2
0
 private JFileChooserFixture findSaveFileChooser() {
   return JFileChooserFinder.findFileChooser("save").using(robot);
 }