@Test void testButtonActions() { robot.interact(() -> { ObservableList<Button> buttons = dialogControl.getButtons(); assertSame(1, buttons.size()); Button button = buttons.get(0); assertEquals(BUTTON_TYPE_1.getText(), button.getText()); verify(mockOnResult, never()).accept(any()); button.fire(); verify(mockOnResult).accept(BUTTON_TYPE_1); verify(mockBench).hideDialog(mockDialog); }); }
public final ObservableList<Button> getButtons() { return FXCollections.unmodifiableObservableList(buttons); }
DialogControl extends Control { public final ObservableList<Button> getButtons() { return FXCollections.unmodifiableObservableList(buttons); } }
DialogControl extends Control { public final ObservableList<Button> getButtons() { return FXCollections.unmodifiableObservableList(buttons); } DialogControl(); }
DialogControl extends Control { public final ObservableList<Button> getButtons() { return FXCollections.unmodifiableObservableList(buttons); } DialogControl(); final void hide(); final Optional<Button> getButton(ButtonType buttonType); final ObjectProperty<EventHandler<Event>> onShownProperty(); final void setOnShown(EventHandler<Event> value); final EventHandler<Event> getOnShown(); final ObjectProperty<EventHandler<Event>> onHiddenProperty(); final void setOnHidden(EventHandler<Event> value); final EventHandler<Event> getOnHidden(); final WorkbenchDialog getDialog(); final ObjectProperty<WorkbenchDialog> dialogProperty(); final void setDialog(WorkbenchDialog dialog); final ObservableList<Button> getButtons(); final boolean isButtonTextUppercase(); final BooleanProperty buttonTextUppercaseProperty(); final void setButtonTextUppercase(boolean buttonTextUppercase); final Workbench getWorkbench(); final void setWorkbench(Workbench workbench); final ObjectProperty<Workbench> workbenchProperty(); final ReadOnlyBooleanProperty showingProperty(); final boolean isShowing(); ButtonType getCancelButtonType(); }
DialogControl extends Control { public final ObservableList<Button> getButtons() { return FXCollections.unmodifiableObservableList(buttons); } DialogControl(); final void hide(); final Optional<Button> getButton(ButtonType buttonType); final ObjectProperty<EventHandler<Event>> onShownProperty(); final void setOnShown(EventHandler<Event> value); final EventHandler<Event> getOnShown(); final ObjectProperty<EventHandler<Event>> onHiddenProperty(); final void setOnHidden(EventHandler<Event> value); final EventHandler<Event> getOnHidden(); final WorkbenchDialog getDialog(); final ObjectProperty<WorkbenchDialog> dialogProperty(); final void setDialog(WorkbenchDialog dialog); final ObservableList<Button> getButtons(); final boolean isButtonTextUppercase(); final BooleanProperty buttonTextUppercaseProperty(); final void setButtonTextUppercase(boolean buttonTextUppercase); final Workbench getWorkbench(); final void setWorkbench(Workbench workbench); final ObjectProperty<Workbench> workbenchProperty(); final ReadOnlyBooleanProperty showingProperty(); final boolean isShowing(); ButtonType getCancelButtonType();  }