org.apache.velocity.test
Class MethodInvocationExceptionTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.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 151591 2005-02-06 15:42:19Z wglass $
Author:
Geir Magnusson Jr.

Field Summary
 
Fields inherited from class junit.framework.TestCase
 
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, run, run, runBare, 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

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.


doException

public void doException()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getFoo

public void getFoo()
            throws java.lang.Exception
Throws:
java.lang.Exception

setFoo

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


Copyright ? 2002 Apache Software Foundation. All Rights Reserved.