@Test public void testOnOKButtonClick() { Command okCommand = mock(Command.class); testInit(); view.init(presenter); view.show(okCommand); okButtonCaptor.getValue().execute(); verify(okCommand).execute(); verify(modal).hide(); }
void onOkButtonClick() { onHide(); if (okCommand != null) { okCommand.execute(); } }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { void onOkButtonClick() { onHide(); if (okCommand != null) { okCommand.execute(); } } }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { void onOkButtonClick() { onHide(); if (okCommand != null) { okCommand.execute(); } }  }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { void onOkButtonClick() { onHide(); if (okCommand != null) { okCommand.execute(); } }  @Override void init(MarshallingResponsePopup presenter); @Override void setTitle(String title); @Override void setInlineNotification(String notificationMessage, InlineNotification.InlineNotificationType notificationType); @Override void setOkActionLabel(String okActionLabel); @Override void setOkActionEnabled(boolean enabled); @Override ListDataProvider<MarshallingResponsePopup.Row> getMessagesTableProvider(); @Override void show(Command okCommand); @Override void copyToClipboard(String text); }
MarshallingResponsePopupView implements MarshallingResponsePopup.View,
                   IsElement { void onOkButtonClick() { onHide(); if (okCommand != null) { okCommand.execute(); } }  @Override void init(MarshallingResponsePopup presenter); @Override void setTitle(String title); @Override void setInlineNotification(String notificationMessage, InlineNotification.InlineNotificationType notificationType); @Override void setOkActionLabel(String okActionLabel); @Override void setOkActionEnabled(boolean enabled); @Override ListDataProvider<MarshallingResponsePopup.Row> getMessagesTableProvider(); @Override void show(Command okCommand); @Override void copyToClipboard(String text);  }