Package | Description |
---|---|
org.apache.wicket.util.tester |
A package with utility classes to ease unit testing of Wicket applications without the need for
a servlet container.
|
Modifier and Type | Method and Description |
---|---|
FormTester |
BaseWicketTester.newFormTester(String path)
Creates a
FormTester for the Form at a given path, and fills all child
FormComponent s with blank String s. |
FormTester |
BaseWicketTester.newFormTester(String path,
boolean fillBlankString)
Creates a
FormTester for the Form at a given path. |
FormTester |
FormTester.select(String formComponentId,
int index)
Simulates selecting an option of a
FormComponent . |
FormTester |
FormTester.selectMultiple(String formComponentId,
int[] indexes)
A convenience method to select multiple options for the
FormComponent . |
FormTester |
FormTester.selectMultiple(String formComponentId,
int[] indexes,
boolean replace)
A convenience method to select multiple options for the
FormComponent . |
FormTester |
FormTester.setClearFeedbackMessagesBeforeSubmit(boolean clearFeedbackMessagesBeforeSubmit) |
FormTester |
FormTester.setFile(String formComponentId,
File file,
String contentType)
Sets the
File on a FileUploadField . |
FormTester |
FormTester.setValue(Component formComponent,
String value)
Simulates filling in a field on a
Form . |
FormTester |
FormTester.setValue(String checkBoxId,
boolean value) |
FormTester |
FormTester.setValue(String formComponentId,
String value)
Simulates filling in a field on a
Form . |
FormTester |
FormTester.submit()
Submits the
Form . |
FormTester |
FormTester.submit(Component buttonComponent)
A convenience method for submitting the
Form with an alternate button. |
FormTester |
FormTester.submit(String buttonComponentId)
A convenience method for submitting the
Form with an alternate button. |
FormTester |
FormTester.submitLink(String path,
boolean pageRelative)
A convenience method to submit the Form via a SubmitLink which may inside or outside of the
Form.
|
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.