Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Junit-testing a task doesn't show exceptions

icet

2008-04-14


Author LoginPost Reply

I have a junit test class that extends BuildTestFile. When I use
executeTarget("targetName"), the class I'm testing throws a
IndexOutOfBoundsException, wich I can only see IF I call the gelFullLog()
method. But even then, I don't have information regarding where the
exception was thrown (most importantly, the line number in the source code)

Is it possible to get more information on exceptions when they're thown from
my code? Or I need to do some regular unit-testing (not using BuildTestFile)
?

Btw, the code I'm testing is a FileNameMapper. When an error occurs, ant's
default behaviour is to ignore it and to move on.

thanks
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.