本文整理了Java中org.drools.workbench.screens.scenariosimulation.client.popup.YesNoConfirmPopupView.commonShow()
方法的一些代码示例,展示了YesNoConfirmPopupView.commonShow()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YesNoConfirmPopupView.commonShow()
方法的具体详情如下:
包路径:org.drools.workbench.screens.scenariosimulation.client.popup.YesNoConfirmPopupView
类名称:YesNoConfirmPopupView
方法名:commonShow
暂无
代码示例来源:origin: kiegroup/drools-wb
@Test
public void showOkCancel() {
yesNoConfirmPopupView.show(TITLE, OK_BUTTON_TEXT, CONFIRM_MESSAGE, okCommandMock);
verify(yesNoConfirmPopupView, times(1)).show(TITLE, null, null, OK_BUTTON_TEXT, Button.ButtonStyleType.DANGER, CONFIRM_MESSAGE, okCommandMock);
verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), any(), any(), eq(CONFIRM_MESSAGE));
}
代码示例来源:origin: kiegroup/drools-wb
@Test
public void showYesNoCancel() {
yesNoConfirmPopupView.show(TITLE, YES_BUTTON_TEXT, NO_BUTTON_TEXT, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
verify(yesNoConfirmPopupView, times(1)).show(TITLE, null, null, YES_BUTTON_TEXT, NO_BUTTON_TEXT, Button.ButtonStyleType.DANGER, Button.ButtonStyleType.DEFAULT, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), any(), any(), eq(CONFIRM_MESSAGE));
}
代码示例来源:origin: kiegroup/drools-wb
@Test
public void showOkCancelFull() {
yesNoConfirmPopupView.show(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, OK_BUTTON_TEXT, BUTTON_STYLE_TYPE, CONFIRM_MESSAGE, okCommandMock);
verify(okButtonMock, never()).hide();
verify(okButtonMock, times(1)).show();
verify(yesButtonMock, times(1)).hide();
verify(noButtonMock, times(1)).hide();
verify(okButtonMock, times(1)).setText(eq(OK_BUTTON_TEXT));
verify(okButtonMock, times(1)).setButtonStyleType(eq(BUTTON_STYLE_TYPE));
verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), eq(INLINE_NOTIFICATION_MESSAGE), eq(INLINE_NOTIFICATION_TYPE), eq(CONFIRM_MESSAGE));
}
代码示例来源:origin: kiegroup/drools-wb
@Test
public void showYesNoCancelFull() {
yesNoConfirmPopupView.show(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, YES_BUTTON_TEXT, NO_BUTTON_TEXT, BUTTON_STYLE_TYPE, BUTTON_STYLE_TYPE, CONFIRM_MESSAGE, yesCommandMock, noCommandMock);
verify(okButtonMock, times(1)).hide();
verify(yesButtonMock, times(1)).show();
verify(noButtonMock, times(1)).show();
verify(yesButtonMock, never()).hide();
verify(noButtonMock, never()).hide();
verify(yesButtonMock, times(1)).setText(eq(YES_BUTTON_TEXT));
verify(noButtonMock, times(1)).setText(eq(NO_BUTTON_TEXT));
verify(yesButtonMock, times(1)).setButtonStyleType(eq(BUTTON_STYLE_TYPE));
verify(noButtonMock, times(1)).setButtonStyleType(eq(BUTTON_STYLE_TYPE));
verify(yesNoConfirmPopupView, times(1)).commonShow(eq(TITLE), eq(INLINE_NOTIFICATION_MESSAGE), eq(INLINE_NOTIFICATION_TYPE), eq(CONFIRM_MESSAGE));
}
代码示例来源:origin: kiegroup/drools-wb
@Test
public void commonShow() {
yesNoConfirmPopupView.commonShow(TITLE, null, null, CONFIRM_MESSAGE);
verify(modalTitleMock, times(1)).setTextContent(eq(TITLE));
verify(confirmInlineNotificationMock, never()).setMessage(anyString());
verify(confirmInlineNotificationMock, never()).setType(eq(INLINE_NOTIFICATION_TYPE));
verify(styleMock, never()).removeProperty(eq("display"));
verify(styleMock, times(1)).setProperty(eq("display"), eq("none"));
verify(modalConfirmationMessageLabelMock, times(1)).setTextContent(eq(CONFIRM_MESSAGE));
verify(modalMock, times(1)).show();
reset(modalTitleMock);
reset(confirmInlineNotificationMock);
when(elementMock.getStyle()).thenReturn(styleMock);
when(confirmInlineNotificationMock.getElement()).thenReturn(elementMock);
reset(styleMock);
reset(modalConfirmationMessageLabelMock);
reset(modalMock);
yesNoConfirmPopupView.commonShow(TITLE, INLINE_NOTIFICATION_MESSAGE, INLINE_NOTIFICATION_TYPE, CONFIRM_MESSAGE);
verify(modalTitleMock, times(1)).setTextContent(eq(TITLE));
verify(confirmInlineNotificationMock, times(1)).setMessage(eq(INLINE_NOTIFICATION_MESSAGE));
verify(confirmInlineNotificationMock, times(1)).setType(eq(INLINE_NOTIFICATION_TYPE));
verify(styleMock, times(1)).removeProperty(eq("display"));
verify(styleMock, never()).setProperty(eq("display"), eq("none"));
verify(modalConfirmationMessageLabelMock, times(1)).setTextContent(eq(CONFIRM_MESSAGE));
verify(modalMock, times(1)).show();
}
}
代码示例来源:origin: kiegroup/drools-wb
@Override
public void show(final String title,
final String inlineNotificationMessage,
final InlineNotification.InlineNotificationType inlineNotificationType,
final String okButtonText,
final Button.ButtonStyleType okButtonType,
final String confirmMessage,
final Command okCommand) {
this.okCommand = okCommand;
okButton.show();
yesButton.hide();
noButton.hide();
okButton.setText(okButtonText);
if (okButtonType != null) {
okButton.setButtonStyleType(okButtonType);
}
commonShow(title, inlineNotificationMessage, inlineNotificationType, confirmMessage);
}
代码示例来源:origin: kiegroup/drools-wb
noButton.setButtonStyleType(noButtonType);
commonShow(title, inlineNotificationMessage, inlineNotificationType, confirmMessage);
内容来源于网络,如有侵权,请联系作者删除!