| 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 |
|---|---|
protected Result |
BaseWicketTester.checkUsability(Component component,
boolean throwException)
Checks whether a component is visible and/or enabled before usage
|
Result |
BaseWicketTester.hasLabel(String path,
String expectedLabelText)
assert the text of
Label component. |
Result |
BaseWicketTester.hasNoErrorMessage()
Asserts no error-level feedback messages.
|
Result |
BaseWicketTester.hasNoFeedbackMessage(int level)
Asserts there are no feedback messages with the given level.
|
Result |
BaseWicketTester.hasNoInfoMessage()
Asserts no info-level feedback messages.
|
Result |
BaseWicketTester.ifContains(String pattern)
assert the content of last rendered page contains(matches) regex pattern.
|
Result |
BaseWicketTester.ifContainsNot(String pattern)
assert the content of last rendered page contains(matches) regex pattern.
|
<C extends Component> |
BaseWicketTester.isComponent(String path,
Class<C> expectedComponentClass)
assert component class
|
Result |
BaseWicketTester.isComponentOnAjaxResponse(Component component)
Tests that a
Component has been added to a AjaxRequestTarget, using
AjaxRequestTarget.add(org.apache.wicket.Component...). |
Result |
BaseWicketTester.isDisabled(String path)
assert component disabled.
|
Result |
BaseWicketTester.isEnabled(String path)
assert component enabled.
|
protected Result |
BaseWicketTester.isEqual(Object expected,
Object actual) |
Result |
BaseWicketTester.isInvisible(String path)
assert component invisible.
|
<C extends Page> |
BaseWicketTester.isRenderedPage(Class<C> expectedRenderedPageClass)
Asserts the last rendered
Page class. |
Result |
BaseWicketTester.isRequired(FormComponent<?> component)
assert component required.
|
Result |
BaseWicketTester.isRequired(String path)
assert component required.
|
Result |
BaseWicketTester.isResultPage(String expectedDocument)
Asserts last rendered
Page against an expected HTML document as a
String. |
Result |
BaseWicketTester.isVisible(String path)
assert component visible.
|
Copyright © 2006–2014 Apache Software Foundation. All rights reserved.