|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.util.tester.WicketTesterHelper
public class WicketTesterHelper
A WicketTester-specific helper class.
| Nested Class Summary | |
|---|---|
static class |
WicketTesterHelper.ComponentData
ComponentData class. |
| Constructor Summary | |
|---|---|
WicketTesterHelper()
|
|
| Method Summary | |
|---|---|
static String |
asLined(Collection<?> objects)
A toString method for the given Collection. |
static void |
assertEquals(Collection<?> expects,
Collection<?> actuals)
Asserts that both Collections contain the same elements. |
static void |
failWithVerboseMessage(Collection<?> expects,
Collection<?> actuals)
Fails with a verbose error message. |
static AjaxEventBehavior |
findAjaxEventBehavior(Component component,
String event)
|
static Behavior |
findBehavior(Component component,
Class<? extends Behavior> behaviorClass)
|
static List<WicketTesterHelper.ComponentData> |
getComponentData(Page page)
Gets recursively all Components of a given Page, extracts the
information relevant to us, and adds them to a List. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WicketTesterHelper()
| Method Detail |
|---|
public static List<WicketTesterHelper.ComponentData> getComponentData(Page page)
Components of a given Page, extracts the
information relevant to us, and adds them to a List.
page - the Page to analyze
List of Component data objects
public static void assertEquals(Collection<?> expects,
Collection<?> actuals)
Collections contain the same elements.
expects - a Collection objectactuals - a Collection object
public static void failWithVerboseMessage(Collection<?> expects,
Collection<?> actuals)
expects - a Collection objectactuals - a Collection objectpublic static String asLined(Collection<?> objects)
toString method for the given Collection.
objects - a Collection object
String representation of the Collection
public static AjaxEventBehavior findAjaxEventBehavior(Component component,
String event)
component - event -
public static Behavior findBehavior(Component component,
Class<? extends Behavior> behaviorClass)
component - behaviorClass -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||