wheel.testing
Class WheelFunctionalTestCase

java.lang.Object
  extended by wheel.testing.WheelFunctionalTestCase

public abstract class WheelFunctionalTestCase
extends java.lang.Object


Constructor Summary
WheelFunctionalTestCase()
           
 
Method Summary
protected static void addParameter(java.lang.String name, java.lang.Object value)
           
protected  void assertPresent(java.lang.String xpathExpression)
          Checks that an element is present in the output html.
protected  void assertXpath(java.lang.String expectedValue, java.lang.String xpathExpression)
          Enables to make Xpath-based assertions on the html-code created when the component was rendered with a call to render() method.
protected static void createUser(java.lang.String name)
           
protected static MockServletContext getContext()
           
protected static java.lang.String getResponseAsString()
           
protected static void initialize()
           
protected  void killUser(java.lang.String name)
           
protected static void load(java.lang.String url)
           
protected static void load(java.lang.String url, java.lang.Object... params)
           
protected static void loadAsUser(java.lang.String url, java.lang.String user)
           
protected static void loadAsUser(java.lang.String url, java.lang.String user, java.lang.Object... params)
           
protected static void resetAll()
           
protected static void resetSessionData()
           
protected  void resetUser(java.lang.String name)
           
static void setApplicationPackages(java.lang.String... packages)
           
static void setBasePackageForPages(java.lang.String base)
           
protected static void setContextName(java.lang.String name)
           
protected static void setResourceRoot(java.io.File root)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WheelFunctionalTestCase

public WheelFunctionalTestCase()
Method Detail

initialize

protected static void initialize()

setBasePackageForPages

public static void setBasePackageForPages(java.lang.String base)

setApplicationPackages

public static void setApplicationPackages(java.lang.String... packages)

load

protected static void load(java.lang.String url)

loadAsUser

protected static void loadAsUser(java.lang.String url,
                                 java.lang.String user)

load

protected static void load(java.lang.String url,
                           java.lang.Object... params)

loadAsUser

protected static void loadAsUser(java.lang.String url,
                                 java.lang.String user,
                                 java.lang.Object... params)

addParameter

protected static void addParameter(java.lang.String name,
                                   java.lang.Object value)

assertXpath

protected void assertXpath(java.lang.String expectedValue,
                           java.lang.String xpathExpression)
Enables to make Xpath-based assertions on the html-code created when the component was rendered with a call to render() method.

Parameters:
expectedValue - Expected result of the xpath-expression.
xpathExpression - A valid Xpath-expression

assertPresent

protected void assertPresent(java.lang.String xpathExpression)
Checks that an element is present in the output html.

Parameters:
xpathExpression - A valid Xpath-expression

getContext

protected static MockServletContext getContext()

createUser

protected static void createUser(java.lang.String name)

resetSessionData

protected static void resetSessionData()

resetUser

protected void resetUser(java.lang.String name)

killUser

protected void killUser(java.lang.String name)

resetAll

protected static void resetAll()

setResourceRoot

protected static void setResourceRoot(java.io.File root)

getResponseAsString

protected static java.lang.String getResponseAsString()

setContextName

protected static void setContextName(java.lang.String name)


Copyright © 2007-2008. All Rights Reserved.