コード例 #1
0
  private void testBatchResize() {
    FileChoosers.setLastOpenDir(INPUT_DIR);
    FileChoosers.setLastSaveDir(BATCH_RESIZE_OUTPUT_DIR);
    runMenuCommand("Batch Resize...");
    DialogFixture dialog = findDialogByTitle("Batch Resize");

    dialog.textBox("widthTF").setText("200");
    dialog.textBox("heightTF").setText("200");
    dialog.button("ok").click();
  }
コード例 #2
0
  private void testBatchFilter() {
    FileChoosers.setLastOpenDir(INPUT_DIR);
    FileChoosers.setLastSaveDir(BATCH_FILTER_OUTPUT_DIR);

    assertTrue(ImageComponents.getActiveComp().isPresent());
    runMenuCommand("Batch Filter...");
    DialogFixture dialog = findDialogByTitle("Batch Filter");
    dialog.comboBox("filtersCB").selectItem("Angular Waves");
    dialog.button("ok").click(); // next
    sleep(3, SECONDS);
    findButtonByText(dialog, "Randomize Settings").click();
    dialog.button("ok").click(); // start processing

    waitForProgressMonitorEnd();
  }