@Test public void testShowYesNoCancelPopup() { popupUtil.showYesNoCancelPopup(TITLE, CONFIRM_MESSAGE, command, noCommand); verify(popupUtil).buildYesNoCancelPopup(eq(TITLE), eq(CONFIRM_MESSAGE), eq(command), eq(noCommand), any(Command.class)); verify(yesNoCancelPopup).clearScrollHeight(); verify(yesNoCancelPopup).setClosable(false); verify(yesNoCancelPopup).show(); }
public void showYesNoCancelPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { final Command cancelCommand = () -> { }; final YesNoCancelPopup yesNoCancelPopup = buildYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand); yesNoCancelPopup.clearScrollHeight(); yesNoCancelPopup.setClosable(false); yesNoCancelPopup.show(); }
PopupUtil { public void showYesNoCancelPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { final Command cancelCommand = () -> { }; final YesNoCancelPopup yesNoCancelPopup = buildYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand); yesNoCancelPopup.clearScrollHeight(); yesNoCancelPopup.setClosable(false); yesNoCancelPopup.show(); } }
PopupUtil { public void showYesNoCancelPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { final Command cancelCommand = () -> { }; final YesNoCancelPopup yesNoCancelPopup = buildYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand); yesNoCancelPopup.clearScrollHeight(); yesNoCancelPopup.setClosable(false); yesNoCancelPopup.show(); } PopupUtil(); @Inject  PopupUtil(final ConfirmPopup confirmPopup); }
PopupUtil { public void showYesNoCancelPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { final Command cancelCommand = () -> { }; final YesNoCancelPopup yesNoCancelPopup = buildYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand); yesNoCancelPopup.clearScrollHeight(); yesNoCancelPopup.setClosable(false); yesNoCancelPopup.show(); } 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 showYesNoCancelPopup(final String title, final String message, final Command yesCommand, final Command noCommand) { final Command cancelCommand = () -> { }; final YesNoCancelPopup yesNoCancelPopup = buildYesNoCancelPopup(title, message, yesCommand, noCommand, cancelCommand); yesNoCancelPopup.clearScrollHeight(); yesNoCancelPopup.setClosable(false); yesNoCancelPopup.show(); } 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);  }