@Test public void showValidationPopupForDeletion() { List<ValidationMessage> validationMessages = Collections.EMPTY_LIST; Command yesCommand = () -> { }; Command noCommand = () -> { }; view.showValidationPopupForDeletion(validationMessages, yesCommand, noCommand); verify(validationPopup, Mockito.times(1)).showDeleteValidationMessages( yesCommand, noCommand, validationMessages); }
@Override public void showValidationPopupForDeletion(List<ValidationMessage> validationMessages, Command yesCommand, Command cancelCommand) { validationPopup.showDeleteValidationMessages(yesCommand, cancelCommand, validationMessages); }
DataObjectBrowserViewImpl extends Composite implements DataObjectBrowserView { @Override public void showValidationPopupForDeletion(List<ValidationMessage> validationMessages, Command yesCommand, Command cancelCommand) { validationPopup.showDeleteValidationMessages(yesCommand, cancelCommand, validationMessages); } }
DataObjectBrowserViewImpl extends Composite implements DataObjectBrowserView { @Override public void showValidationPopupForDeletion(List<ValidationMessage> validationMessages, Command yesCommand, Command cancelCommand) { validationPopup.showDeleteValidationMessages(yesCommand, cancelCommand, validationMessages); } @Inject  DataObjectBrowserViewImpl(final ValidationPopup validationPopup,
                                     final Instance<FieldMetadataProvider> fieldMetadataProviderInstance); }
DataObjectBrowserViewImpl extends Composite implements DataObjectBrowserView { @Override public void showValidationPopupForDeletion(List<ValidationMessage> validationMessages, Command yesCommand, Command cancelCommand) { validationPopup.showDeleteValidationMessages(yesCommand, cancelCommand, validationMessages); } @Inject  DataObjectBrowserViewImpl(final ValidationPopup validationPopup,
                                     final Instance<FieldMetadataProvider> fieldMetadataProviderInstance); @Override void init(Presenter presenter); @Override void setDataProvider(ListDataProvider<ObjectProperty> dataProvider); void setObjectSelectorLabel(String label,
                                       String title); void setReadonly(boolean readonly); void enableNewPropertyAction(boolean enable); @Override void enableDeleteRowAction(boolean enable); @Override void redrawRow(int row); @Override void redrawTable(); @Override ObjectProperty getSelectedRow(); @Override void setSelectedRow(ObjectProperty objectProperty,
                               boolean select); @Override void setTableHeight(int height); @Override int getTableHeight(); @Override void showBusyIndicator(String message); @Override void hideBusyIndicator(); @Override void showYesNoCancelPopup(final String title,
                                     final String content,
                                     final Command yesCommand,
                                     final String yesButtonText,
                                     final ButtonType yesButtonType,
                                     final Command noCommand,
                                     final String noButtonText,
                                     final ButtonType noButtonType,
                                     final Command cancelCommand,
                                     final String cancelButtonText,
                                     final ButtonType cancelButtonType); @Override void showValidationPopupForDeletion(List<ValidationMessage> validationMessages,
                                               Command yesCommand,
                                               Command cancelCommand); }
DataObjectBrowserViewImpl extends Composite implements DataObjectBrowserView { @Override public void showValidationPopupForDeletion(List<ValidationMessage> validationMessages, Command yesCommand, Command cancelCommand) { validationPopup.showDeleteValidationMessages(yesCommand, cancelCommand, validationMessages); } @Inject  DataObjectBrowserViewImpl(final ValidationPopup validationPopup,
                                     final Instance<FieldMetadataProvider> fieldMetadataProviderInstance); @Override void init(Presenter presenter); @Override void setDataProvider(ListDataProvider<ObjectProperty> dataProvider); void setObjectSelectorLabel(String label,
                                       String title); void setReadonly(boolean readonly); void enableNewPropertyAction(boolean enable); @Override void enableDeleteRowAction(boolean enable); @Override void redrawRow(int row); @Override void redrawTable(); @Override ObjectProperty getSelectedRow(); @Override void setSelectedRow(ObjectProperty objectProperty,
                               boolean select); @Override void setTableHeight(int height); @Override int getTableHeight(); @Override void showBusyIndicator(String message); @Override void hideBusyIndicator(); @Override void showYesNoCancelPopup(final String title,
                                     final String content,
                                     final Command yesCommand,
                                     final String yesButtonText,
                                     final ButtonType yesButtonType,
                                     final Command noCommand,
                                     final String noButtonText,
                                     final ButtonType noButtonType,
                                     final Command cancelCommand,
                                     final String cancelButtonText,
                                     final ButtonType cancelButtonType); @Override void showValidationPopupForDeletion(List<ValidationMessage> validationMessages,
                                               Command yesCommand,
                                               Command cancelCommand);  }