public class StubbedDialogs
A stub of the Dialogs class, to be used in unit testing of GUIs.
Modifiers | Name | Description |
---|---|---|
static class |
StubbedDialogs.Confirmation |
|
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.awt.Component parent) |
|
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) |
|
void |
describeTo(org.hamcrest.Description description) |
|
void |
describeTo(org.hamcrest.Description description) |
|
void |
describeTo(org.hamcrest.Description description) |
|
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) |
|
boolean |
matchesSafely(java.util.List<Prompt> prompts) |
|
boolean |
matchesSafely(java.util.List<Confirmation> confirmations) |
|
boolean |
matchesSafely(java.util.List<Confirmation> confirmations) |
|
void |
mockConfirmWithReturnValue(java.lang.Boolean value) |
|
void |
mockConfirmWithReturnValue(java.lang.Boolean value, java.lang.Boolean values) |
|
void |
mockPromptWithReturnValue(java.lang.Object value) |
|
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.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 |
showInfoMessage(java.lang.String message) |
|
void |
showInfoMessage(java.lang.String message, java.lang.String title) |
|
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() |