org.ieee.shinobu.demo.velocity
Class AbstractVelocityTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.ieee.shinobu.demo.velocity.AbstractVelocityTestCase
- All Implemented Interfaces:
- junit.framework.Test
public abstract class AbstractVelocityTestCase
- extends junit.framework.TestCase
- Author:
- shinobu
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 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 |
AbstractVelocityTestCase
public AbstractVelocityTestCase()
getLog
protected final org.apache.commons.logging.Log getLog()
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class junit.framework.TestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class junit.framework.TestCase
- 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.