org.ieee.shinobu.demo.velocity
Class AbstractVelocityMockStrutsTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by servletunit.struts.MockStrutsTestCase
              extended by org.ieee.shinobu.demo.velocity.AbstractVelocityMockStrutsTestCase
All Implemented Interfaces:
junit.framework.Test

public abstract class AbstractVelocityMockStrutsTestCase
extends servletunit.struts.MockStrutsTestCase

Author:
shinobu

Field Summary
 
Fields inherited from class servletunit.struts.MockStrutsTestCase
actionPath, actionServlet, actionServletIsInitialized, config, isInitialized, logger, registrations, request, requestPathSet, requestWrapper, response, responseWrapper
 
Constructor Summary
AbstractVelocityMockStrutsTestCase()
           
 
Method Summary
protected  void assertVelocity()
           
protected  org.apache.velocity.context.Context getContext()
           
protected  org.apache.velocity.app.VelocityEngine getEngine()
           
protected  java.lang.String getExpected()
           
protected  org.apache.commons.logging.Log getLog()
           
protected  java.lang.String getTemplate()
           
protected  void setContext(org.apache.velocity.context.Context context)
           
protected  void setEngine(org.apache.velocity.app.VelocityEngine engine)
           
protected  void setExpected(java.lang.String expected)
           
protected  void setTemplate(java.lang.String template)
           
protected  void setUp()
           
protected  void tearDown()
           
 
Methods inherited from class servletunit.struts.MockStrutsTestCase
actionPerform, addRequestParameter, addRequestParameter, clearRequestParameters, getActionForm, getActionServlet, getActualForward, getMockRequest, getMockResponse, getRequest, getRequestWrapper, getResponse, getResponseWrapper, getSession, setActionForm, setActionServlet, setConfigFile, setConfigFile, setContextDirectory, setInitParameter, setRequestPathInfo, setRequestPathInfo, setRequestWrapper, setResponseWrapper, setServletConfigFile, verifyActionErrors, verifyActionMessages, verifyForward, verifyForwardPath, verifyInputForward, verifyInputTilesForward, verifyNoActionErrors, verifyNoActionMessages, verifyTilesForward
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractVelocityMockStrutsTestCase

public AbstractVelocityMockStrutsTestCase()
Method Detail

getLog

protected final org.apache.commons.logging.Log getLog()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class servletunit.struts.MockStrutsTestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class servletunit.struts.MockStrutsTestCase
Throws:
java.lang.Exception

getEngine

protected org.apache.velocity.app.VelocityEngine getEngine()
Returns:
Returns the engine.

setEngine

protected void setEngine(org.apache.velocity.app.VelocityEngine engine)
Parameters:
engine - The engine to set.

getTemplate

protected java.lang.String getTemplate()
Returns:
Returns the template.

setTemplate

protected void setTemplate(java.lang.String template)
Parameters:
template - The template to set.

getContext

protected org.apache.velocity.context.Context getContext()
Returns:
Returns the context.

setContext

protected void setContext(org.apache.velocity.context.Context context)
Parameters:
context - The context to set.

getExpected

protected java.lang.String getExpected()
Returns:
Returns the expected.

setExpected

protected void setExpected(java.lang.String expected)
Parameters:
expected - The expected to set.

assertVelocity

protected void assertVelocity()
                       throws org.apache.velocity.exception.ParseErrorException,
                              org.apache.velocity.exception.MethodInvocationException,
                              org.apache.velocity.exception.ResourceNotFoundException,
                              java.io.IOException,
                              java.lang.Exception
Throws:
org.apache.velocity.exception.ParseErrorException
org.apache.velocity.exception.MethodInvocationException
org.apache.velocity.exception.ResourceNotFoundException
java.io.IOException
java.lang.Exception


Copyright © 2002-2005 org.ieee.shinobu. All Rights Reserved.