wicket.util.tester
Class WicketTesterHelper

java.lang.Object
  extended bywicket.util.tester.WicketTesterHelper

public class WicketTesterHelper
extends java.lang.Object

A WicketTester specific helper class

Author:
Ingram Chen

Nested Class Summary
static class WicketTesterHelper.ComponentData
           
 
Constructor Summary
WicketTesterHelper()
           
 
Method Summary
static java.lang.String asLined(java.util.Collection objects)
          toString() for the collection provided.
static void assertEquals(java.util.Collection expects, java.util.Collection actuals)
          Assert both collections contain the same elements
static void failWithVerboseMessage(java.util.Collection expects, java.util.Collection actuals)
          Fail with a verbose error message
static java.util.List getComponentData(Page page)
          Get recursively all components of the page, extract the information relevant for us and add them to a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WicketTesterHelper

public WicketTesterHelper()
Method Detail

getComponentData

public static java.util.List getComponentData(Page page)
Get recursively all components of the page, extract the information relevant for us and add them to a list.

Parameters:
page -
Returns:
List of component data objects

assertEquals

public static void assertEquals(java.util.Collection expects,
                                java.util.Collection actuals)
Assert both collections contain the same elements

Parameters:
expects -
actuals -

failWithVerboseMessage

public static void failWithVerboseMessage(java.util.Collection expects,
                                          java.util.Collection actuals)
Fail with a verbose error message

Parameters:
expects -
actuals -

asLined

public static java.lang.String asLined(java.util.Collection objects)
toString() for the collection provided.

Parameters:
objects -
Returns:
String


Copyright © 2004-2006 Wicket developers. All Rights Reserved.