|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.velocity.test.BaseTestCase
org.apache.velocity.test.ExceptionTestCase
public class ExceptionTestCase
Test case for miscellaneous Exception related issues.
Field Summary |
---|
Fields inherited from interface org.apache.velocity.test.TemplateTestBase |
---|
CMP_FILE_EXT, COMPARE_DIR, FILE_RESOURCE_LOADER_PATH, RESULT_DIR, RESULT_FILE_EXT, TEST_CASE_PROPERTIES, TEST_COMPARE_DIR, TEST_RESULT_DIR, TMPL_FILE_EXT |
Constructor Summary | |
---|---|
ExceptionTestCase(String name)
Default constructor. |
Method Summary | |
---|---|
void |
assertException(VelocityEngine ve)
|
void |
assertException(VelocityEngine ve,
Context context,
String input)
|
void |
assertException(VelocityEngine ve,
String input)
|
void |
assertMethodInvocationException(VelocityEngine ve,
Context context,
String input)
|
static junit.framework.Test |
suite()
|
void |
testDirectiveException()
|
void |
testIncludeEventHandlerException()
|
void |
testMethodExceptionEventHandlerException()
Note - this is the one case where RuntimeExceptions *are not* passed through verbatim. |
void |
testNullSetEventHandlerException()
|
void |
testReferenceInsertionEventHandlerException()
|
void |
testResourceLoaderException()
|
Methods inherited from class org.apache.velocity.test.BaseTestCase |
---|
assureResultsDirectoryExists, getFileContents, getFileName, getFileName, getTestCaseName, isMatch, isMatch, normalizeNewlines |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
---|
public ExceptionTestCase(String name)
Method Detail |
---|
public static junit.framework.Test suite()
public void testReferenceInsertionEventHandlerException() throws Exception
Exception
public void testMethodExceptionEventHandlerException() throws Exception
Exception
public void testNullSetEventHandlerException() throws Exception
Exception
public void testIncludeEventHandlerException() throws Exception
Exception
public void testResourceLoaderException() throws Exception
Exception
public void testDirectiveException() throws Exception
Exception
public void assertException(VelocityEngine ve) throws Exception
Exception
public void assertException(VelocityEngine ve, String input) throws Exception
Exception
public void assertException(VelocityEngine ve, Context context, String input) throws Exception
Exception
public void assertMethodInvocationException(VelocityEngine ve, Context context, String input) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |