ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From icet <ice...@yahoo.com.br>
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.

thanks
-- 
View this message in context: http://www.nabble.com/Junit-testing-a-task-doesn%27t-show-exceptions-tp16689100p16689100.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message