|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 Collection s 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 Component s 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)
Component
s 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 objectspublic static void assertEquals(Collection<?> expects, Collection<?> actuals)
Collection
s 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
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 |