public class StubbedDialogs
A stub of the Dialogs class, to be used in unit testing of GUIs.
Modifiers | Name | Description |
---|---|---|
static class |
StubbedDialogs.Confirmation |
|
class |
StubbedDialogs.DontAskResult |
|
static class |
StubbedDialogs.Prompt |
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
confirm(java.lang.String question, java.lang.String title) |
|
boolean |
confirm(java.lang.String question, java.lang.String title, java.lang.String helpUrl, java.lang.String urlDescription) |
|
boolean |
confirm(java.lang.String question, java.lang.String title, java.awt.Component parent) |
|
ConfirmDontAskResult |
confirmDontAsk(java.lang.String question, java.lang.String title) |
|
boolean |
confirmExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.awt.Dimension size) |
|
java.lang.Boolean |
confirmOrCancel(java.lang.String question, java.lang.String title) |
|
java.lang.Boolean |
confirmOrCancleExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.awt.Dimension size) |
|
XProgressDialog |
createProgressDialog(java.lang.String label, int length, java.lang.String initialValue, boolean canCancel) |
|
java.util.List<Confirmation> |
getConfirmations() |
|
java.util.List<java.lang.String> |
getErrorMessages() |
|
java.util.List<java.lang.String> |
getInfoMessages() |
|
java.util.List<Prompt> |
getPrompts() |
|
static org.hamcrest.Matcher<java.util.List<Confirmation>> |
hasConfirmationWithQuestion(java.lang.String question) |
|
static org.hamcrest.Matcher<java.util.List<Confirmation>> |
hasConfirmationWithQuestionThat(org.hamcrest.Matcher<java.lang.String> stringMatcher) |
|
static org.hamcrest.Matcher<java.util.List<Prompt>> |
hasPromptWithValue(java.lang.String value) |
|
void |
mockConfirmWithReturnValue(java.lang.Boolean value) |
|
void |
mockConfirmWithReturnValue(java.lang.Boolean value, java.lang.Boolean... values) |
|
void |
mockPromptWithReturnValue(java.lang.Object value) |
|
void |
mockPromptWithReturnValue(java.lang.Object value, java.lang.Object... values) |
|
java.lang.String |
prompt(java.lang.String question, java.lang.String title, java.lang.String value) |
|
java.lang.String |
prompt(java.lang.String question, java.lang.String title, java.lang.String value, java.awt.Font font) |
|
java.lang.String |
prompt(java.lang.String question, java.lang.String title) |
|
java.lang.Object |
prompt(java.lang.String question, java.lang.String title, java.lang.Object[] objects) |
|
java.lang.Object |
prompt(java.lang.String question, java.lang.String title, java.lang.Object[] objects, java.lang.String value) |
|
char[] |
promptPassword(java.lang.String question, java.lang.String title) |
|
java.lang.String |
selectJsonPath(java.lang.String title, java.lang.String info, java.lang.String json, java.lang.String jsonPath) |
|
java.lang.String |
selectXPath(java.lang.String title, java.lang.String info, java.lang.String xml, java.lang.String xpath) |
|
void |
showErrorMessage(java.lang.String message) |
|
void |
showExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.awt.Dimension size) |
|
void |
showExtendedInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String contentType, java.awt.Dimension size) |
|
void |
showExtendedXmlInfo(java.lang.String title, java.lang.String description, java.lang.String content, java.lang.String contentType, int line, int column, java.lang.String resourcePath) |
|
void |
showInfoMessage(java.lang.String message) |
|
void |
showInfoMessage(java.lang.String message, java.lang.String title) |
|
boolean |
showInfoMessageDontAsk(java.lang.String infoMessage, java.lang.String title) |
|
boolean |
showInfoMessageDontAsk(java.lang.String infoMessage, java.lang.String title, java.lang.String helpLinkText, java.lang.String helpLinkUrl) |
|
int |
showOptionButtons(java.lang.String question, java.lang.String title, java.lang.String... buttons) |
|
int |
yesYesToAllOrNo(java.lang.String question, java.lang.String title) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |