org.apache.velocity.test
Class MethodInvocationExceptionTest

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

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(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.

Overrides:
runTest in class junit.framework.TestCase

doException

public void doException()
                 throws Exception
Throws:
Exception

getFoo

public void getFoo()
            throws Exception
Throws:
Exception

setFoo

public void setFoo(String foo)
            throws Exception
Throws:
Exception


Copyright © 2002 Apache Software Foundation. All Rights Reserved.