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  ILink newLink()
           
protected  LinkFactory newLinkFactory()
           
protected  LinkFactory newLinkFactory(Map parameters, boolean stateful, ILink link)
           
protected  Log newLog()
           
protected  IPage newPage(String name)
           
protected  HttpServletRequest newRequest(boolean create, HttpSession session)
           
protected  HttpServletRequest newRequest(HttpSession session)
           
protected  ResponseRenderer newResponseRenderer()
           
protected  HttpSession newSession()
           
protected  HttpSession newSession(boolean isNew)
           
protected  WebRequest newWebRequest(boolean create, WebSession session)
           
protected  WebRequest newWebRequest(WebSession session)
           
protected  WebSession newWebSession()
           
protected  WebSession newWebSession(boolean isNew)
           
protected  void trainConstructLink(LinkFactory linkFactory, IEngineService service, boolean post, Map parameters, boolean stateful, ILink link)
           
protected  void trainExtractListenerParameters(LinkFactory factory, IRequestCycle cycle, Object[] parameters)
           
protected  void trainGetAbsoluteURL(IRequestCycle cycle, String shortURL, String fullURL)
           
protected  void trainGetNestedComponent(IPage page, String idPath, IComponent component)
           
protected  void trainGetPage(IRequestCycle cycle, IPage page)
           
protected  void trainGetPage(IRequestCycle cycle, String pageName, 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 IPage newPage(String name)

newRequest

protected HttpServletRequest newRequest(HttpSession session)

newWebRequest

protected WebRequest newWebRequest(WebSession session)

newRequest

protected HttpServletRequest newRequest(boolean create,
                                        HttpSession session)

newWebRequest

protected WebRequest newWebRequest(boolean create,
                                   WebSession session)

newSession

protected HttpSession newSession(boolean isNew)

newWebSession

protected WebSession newWebSession(boolean isNew)

newSession

protected HttpSession newSession()

newWebSession

protected WebSession newWebSession()

newLink

protected ILink newLink()

newLinkFactory

protected LinkFactory newLinkFactory(Map parameters,
                                     boolean stateful,
                                     ILink link)

newResponseRenderer

protected ResponseRenderer newResponseRenderer()

trainConstructLink

protected void trainConstructLink(LinkFactory linkFactory,
                                  IEngineService service,
                                  boolean post,
                                  Map parameters,
                                  boolean stateful,
                                  ILink link)

newLinkFactory

protected LinkFactory newLinkFactory()

trainGetPage

protected void trainGetPage(IRequestCycle cycle,
                            IPage page)

trainGetNestedComponent

protected void trainGetNestedComponent(IPage page,
                                       String idPath,
                                       IComponent component)

trainGetPage

protected void trainGetPage(IRequestCycle cycle,
                            String pageName,
                            IPage page)

trainExtractListenerParameters

protected void trainExtractListenerParameters(LinkFactory factory,
                                              IRequestCycle cycle,
                                              Object[] parameters)

trainGetAbsoluteURL

protected void trainGetAbsoluteURL(IRequestCycle cycle,
                                   String shortURL,
                                   String fullURL)

newLog

protected Log newLog()


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