Re: Unit tests for JavaCC tokens and productions: InvocationTargetException
by AC <user@[EMAIL PROTECTED]
>
May 11, 2008 at 02:13 PM
java.lang.reflect.InvocationTargetException is a wrapper exception. I
suspect you may be seeing this because test runners like JUnit use
reflection to inspect a test class and find its test methods, and then
invoke each test method. When a test method invoked via reflection
throws an exception, reflection wraps the exception in an
InvocationTargetException. So look inside the wrapper, and find the
exception that caused it.