public class WicketTesterHelper extends Object
WicketTester-specific helper class.| Modifier and Type | Class and Description |
|---|---|
static class |
WicketTesterHelper.ComponentData
ComponentData class. |
| Constructor and Description |
|---|
WicketTesterHelper() |
| Modifier and Type | Method and Description |
|---|---|
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)
Finds the first AjaxEventBehavior attached to the specified component with the
specified event.
|
static List<AjaxEventBehavior> |
findAjaxEventBehaviors(Component component,
String event)
Finds all AjaxEventBehavior's attached to the specified component with
the specified 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. |
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 analyzeList of Component data objectspublic static void assertEquals(Collection<?> expects, Collection<?> actuals)
Collections contain the same elements.expects - a Collection objectactuals - a Collection objectpublic 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 objectString representation of the Collectionpublic static AjaxEventBehavior findAjaxEventBehavior(Component component, String event)
component - event - nullpublic static List<AjaxEventBehavior> findAjaxEventBehaviors(Component component, String event)
component - event - Copyright © 2006–2014 Apache Software Foundation. All rights reserved.