org.apache.velocity.test
Class MethodInvocationExceptionTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.velocity.test.MethodInvocationExceptionTest
All Implemented Interfaces:
junit.framework.Test

public class MethodInvocationExceptionTest
extends junit.framework.TestCase

Tests if we can hand Velocity an arbitrary class for logging.

Version:
$Id: MethodInvocationExceptionTest.java,v 1.6 2001/08/07 22:20:28 geirm Exp $
Author:
Geir Magnusson Jr.

Fields inherited from class junit.framework.TestCase
fName
 
Constructor Summary
MethodInvocationExceptionTest()
          Default constructor.
 
Method Summary
 void doException()
           
 void getFoo()
           
 void runTest()
          Runs the test : uses the Velocity class to eval a string which accesses a method that throws an exception.
 void setFoo(java.lang.String foo)
           
static junit.framework.Test suite()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

MethodInvocationExceptionTest

public MethodInvocationExceptionTest()
Default constructor.
Method Detail

suite

public static junit.framework.Test suite()

runTest

public void runTest()
Runs the test : uses the Velocity class to eval a string which accesses a method that throws an exception.
Overrides:
runTest in class junit.framework.TestCase

doException

public void doException()
                 throws java.lang.Exception

getFoo

public void getFoo()
            throws java.lang.Exception

setFoo

public void setFoo(java.lang.String foo)
            throws java.lang.Exception


Copyright © 2003 Apache Software Foundation. All Rights Reserved.