ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From icet <>
Subject Junit-testing a task doesn't show exceptions
Date Mon, 14 Apr 2008 20:17:31 GMT

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.

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message