org.apache.tapestry.engine
Class ServiceTestCase

java.lang.Object
  extended by BaseComponentTestCase
      extended by org.apache.tapestry.engine.ServiceTestCase
Direct Known Subclasses:
DirectEventServiceTest, DirectServiceTest, EngineUtilsTest, ExternalServiceTest, PageServiceTest, ResetServiceTest, RestartServiceTest

public abstract class ServiceTestCase
extends BaseComponentTestCase

Common utilities for building tests for IEngineServices.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
ServiceTestCase()
           
 
Method Summary
protected  org.apache.tapestry.engine.ILink newLink()
           
protected  org.apache.tapestry.services.LinkFactory newLinkFactory()
           
protected  org.apache.tapestry.services.LinkFactory newLinkFactory(Map parameters, boolean stateful, org.apache.tapestry.engine.ILink link)
           
protected  Log newLog()
           
protected  org.apache.tapestry.IPage newPage(String name)
           
protected  HttpServletRequest newRequest(boolean create, HttpSession session)
           
protected  HttpServletRequest newRequest(HttpSession session)
           
protected  org.apache.tapestry.services.ResponseRenderer newResponseRenderer()
           
protected  HttpSession newSession()
           
protected  HttpSession newSession(boolean isNew)
           
protected  org.apache.tapestry.web.WebRequest newWebRequest(boolean create, org.apache.tapestry.web.WebSession session)
           
protected  org.apache.tapestry.web.WebRequest newWebRequest(org.apache.tapestry.web.WebSession session)
           
protected  org.apache.tapestry.web.WebSession newWebSession()
           
protected  org.apache.tapestry.web.WebSession newWebSession(boolean isNew)
           
protected  void trainConstructLink(org.apache.tapestry.services.LinkFactory linkFactory, org.apache.tapestry.engine.IEngineService service, boolean post, Map parameters, boolean stateful, org.apache.tapestry.engine.ILink link)
           
protected  void trainExtractListenerParameters(org.apache.tapestry.services.LinkFactory factory, org.apache.tapestry.IRequestCycle cycle, Object[] parameters)
           
protected  void trainGetAbsoluteURL(org.apache.tapestry.IRequestCycle cycle, String shortURL, String fullURL)
           
protected  void trainGetNestedComponent(org.apache.tapestry.IPage page, String idPath, org.apache.tapestry.IComponent component)
           
protected  void trainGetPage(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.IPage page)
           
protected  void trainGetPage(org.apache.tapestry.IRequestCycle cycle, String pageName, org.apache.tapestry.IPage page)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceTestCase

public ServiceTestCase()
Method Detail

newPage

protected org.apache.tapestry.IPage newPage(String name)

newRequest

protected HttpServletRequest newRequest(HttpSession session)

newWebRequest

protected org.apache.tapestry.web.WebRequest newWebRequest(org.apache.tapestry.web.WebSession session)

newRequest

protected HttpServletRequest newRequest(boolean create,
                                        HttpSession session)

newWebRequest

protected org.apache.tapestry.web.WebRequest newWebRequest(boolean create,
                                                           org.apache.tapestry.web.WebSession session)

newSession

protected HttpSession newSession(boolean isNew)

newWebSession

protected org.apache.tapestry.web.WebSession newWebSession(boolean isNew)

newSession

protected HttpSession newSession()

newWebSession

protected org.apache.tapestry.web.WebSession newWebSession()

newLink

protected org.apache.tapestry.engine.ILink newLink()

newLinkFactory

protected org.apache.tapestry.services.LinkFactory newLinkFactory(Map parameters,
                                                                  boolean stateful,
                                                                  org.apache.tapestry.engine.ILink link)

newResponseRenderer

protected org.apache.tapestry.services.ResponseRenderer newResponseRenderer()

trainConstructLink

protected void trainConstructLink(org.apache.tapestry.services.LinkFactory linkFactory,
                                  org.apache.tapestry.engine.IEngineService service,
                                  boolean post,
                                  Map parameters,
                                  boolean stateful,
                                  org.apache.tapestry.engine.ILink link)

newLinkFactory

protected org.apache.tapestry.services.LinkFactory newLinkFactory()

trainGetPage

protected void trainGetPage(org.apache.tapestry.IRequestCycle cycle,
                            org.apache.tapestry.IPage page)

trainGetNestedComponent

protected void trainGetNestedComponent(org.apache.tapestry.IPage page,
                                       String idPath,
                                       org.apache.tapestry.IComponent component)

trainGetPage

protected void trainGetPage(org.apache.tapestry.IRequestCycle cycle,
                            String pageName,
                            org.apache.tapestry.IPage page)

trainExtractListenerParameters

protected void trainExtractListenerParameters(org.apache.tapestry.services.LinkFactory factory,
                                              org.apache.tapestry.IRequestCycle cycle,
                                              Object[] parameters)

trainGetAbsoluteURL

protected void trainGetAbsoluteURL(org.apache.tapestry.IRequestCycle cycle,
                                   String shortURL,
                                   String fullURL)

newLog

protected Log newLog()


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.