/** * Finds the "Approve" button in this fixture's {@code JFileChooser}. * * @return the found "Approve" button. * @throws org.assertj.swing.exception.ComponentLookupException if the "Approve" button cannot be found. */ @Nonnull public JButtonFixture approveButton() { return new JButtonFixture(robot(), driver().approveButton(target())); }
/** * Finds the "Cancel" button in this fixture's {@code JFileChooser}. * * @return the found "Cancel" button. * @throws org.assertj.swing.exception.ComponentLookupException if the "Cancel" button cannot be found. */ @Nonnull public JButtonFixture cancelButton() { return new JButtonFixture(robot(), driver().cancelButton(target())); }
/** * Returns a fixture that manages the field where the user can enter the name of the file to select in this fixture's * {@code JFileChooser}. * * @return the created fixture. * @throws org.assertj.swing.exception.ComponentLookupException if a matching textToMatch field could not be found. */ @Nonnull public JTextComponentFixture fileNameTextBox() { return new JTextComponentFixture(robot(), driver().fileNameTextBox(target())); }