|
||||||||||
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.MethodInvocationExceptionTestCase
public class MethodInvocationExceptionTestCase
Tests if we can hand Velocity an arbitrary class for logging.
Field Summary | |
---|---|
protected boolean |
DEBUG
|
Constructor Summary | |
---|---|
MethodInvocationExceptionTestCase(String name)
Default constructor. |
Method Summary | |
---|---|
void |
doException()
|
void |
getFoo()
|
protected void |
log(String out)
|
void |
setFoo(String foo)
|
void |
setUp()
|
static junit.framework.Test |
suite()
|
void |
testCapitalizedGetterMethodInvocationException()
|
void |
testGetterMethodInvocationException()
|
void |
testMacroInvocationException()
test that no exception is thrown when in parameter to macro. |
void |
testNormalMethodInvocationException()
Runs the test : uses the Velocity class to eval a string which accesses a method that throws an exception. |
void |
testSetterMethodInvocationException()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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 |
Field Detail |
---|
protected boolean DEBUG
Constructor Detail |
---|
public MethodInvocationExceptionTestCase(String name)
name
- Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public static junit.framework.Test suite()
protected void log(String out)
public void testNormalMethodInvocationException() throws Exception
Exception
public void testGetterMethodInvocationException() throws Exception
Exception
public void testCapitalizedGetterMethodInvocationException() throws Exception
Exception
public void testSetterMethodInvocationException() throws Exception
Exception
public void testMacroInvocationException() throws Exception
Exception
public void doException() throws Exception
Exception
public void getFoo() throws Exception
Exception
public void setFoo(String foo) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |