@Test public void testShowConfirmPopupWithInlineNotification() { InlineNotification.InlineNotificationType someNotificationType = InlineNotification.InlineNotificationType.WARNING; Button.ButtonStyleType someBtnType = Button.ButtonStyleType.PRIMARY; popupUtil.showConfirmPopup(TITLE, INLINE_NOTIFICATION, someNotificationType, OK_BUTTON_TEXT, someBtnType, CONFIRM_MESSAGE, command); verify(confirmPopup, times(1)).show(TITLE, INLINE_NOTIFICATION, someNotificationType, OK_BUTTON_TEXT, someBtnType, CONFIRM_MESSAGE, command); }
public void showConfirmPopup(final String title, final String okButtonText, final String confirmMessage, final Command okCommand) { confirmPopup.show(title, okButtonText, confirmMessage, okCommand); }
PopupUtil { public void showConfirmPopup(final String title, final String okButtonText, final String confirmMessage, final Command okCommand) { confirmPopup.show(title, okButtonText, confirmMessage, okCommand); } }
PopupUtil { public void showConfirmPopup(final String title, final String okButtonText, final String confirmMessage, final Command okCommand) { confirmPopup.show(title, okButtonText, confirmMessage, okCommand); } PopupUtil(); @Inject  PopupUtil(final ConfirmPopup confirmPopup); }
PopupUtil { public void showConfirmPopup(final String title, final String okButtonText, final String confirmMessage, final Command okCommand) { confirmPopup.show(title, okButtonText, confirmMessage, okCommand); } PopupUtil(); @Inject  PopupUtil(final ConfirmPopup confirmPopup); void showConfirmPopup(final String title,
                                 final String okButtonText,
                                 final String confirmMessage,
                                 final Command okCommand); void showConfirmPopup(final String title,
                                 final String inlineNotificationMessage,
                                 final InlineNotification.InlineNotificationType inlineNotificationType,
                                 final String okButtonText,
                                 final Button.ButtonStyleType okButtonType,
                                 final String confirmMessage,
                                 final Command okCommand); void showYesNoCancelPopup(final String title,
                                     final String message,
                                     final Command yesCommand,
                                     final Command noCommand); }
PopupUtil { public void showConfirmPopup(final String title, final String okButtonText, final String confirmMessage, final Command okCommand) { confirmPopup.show(title, okButtonText, confirmMessage, okCommand); } PopupUtil(); @Inject  PopupUtil(final ConfirmPopup confirmPopup); void showConfirmPopup(final String title,
                                 final String okButtonText,
                                 final String confirmMessage,
                                 final Command okCommand); void showConfirmPopup(final String title,
                                 final String inlineNotificationMessage,
                                 final InlineNotification.InlineNotificationType inlineNotificationType,
                                 final String okButtonText,
                                 final Button.ButtonStyleType okButtonType,
                                 final String confirmMessage,
                                 final Command okCommand); void showYesNoCancelPopup(final String title,
                                     final String message,
                                     final Command yesCommand,
                                     final Command noCommand);  }