> method if the test method I'm executing is failed or there is an
> error?
>
> Thanks, ciao
The easy answer is setting a "completed" flag to true in the last line
of your test method - of course you must initialize it to false in
either its declaration or a setUp() method.
Other than that, I would say that you should take a long, hard look at
your code and decide if you really need this - are you sure you need a
different tearDown functionality if a test fails?
Henk van Voorthuijsen
> method if the test method I'm executing is failed or there is an
> error?
/Please/ don't split your sentences over the subject line like
that. It makes the body of your message incomprehensible.
| Junit teardown: how can I understand in teardown method if the
| test method I'm executing is failed or there is an error?
I've never needed to care. (Perhaps because I rarely have to
write teardowns.)
Show us your actual problem.

Signature
"We did not have time to find out everything /A Clash of Cymbals/
we wanted to know." - James Blish
Hewlett-Packard Limited registered office: Cain Road, Bracknell,
registered no: 690597 England Berks RG12 1HN
MeMi - 22 May 2007 11:08 GMT
> Show us your actual problem.
I'm using easy mock and I'd like to centralize the verify method
call.
Anyway I'll
"take a long, hard look at
your code and decide if you really need this "
as voorth told me. Thanks, ciao
Chris Dollin - 22 May 2007 11:09 GMT
>> Show us your actual problem.
>
> I'm using easy mock and I'd like to centralize the verify method
> call.
Assertions don't belong in the teardown.

Signature
"I just wonder when we're going to have to sit down and re-evaluate /Sahara/
our decision-making paradigm."
Hewlett-Packard Limited registered no:
registered office: Cain Road, Bracknell, Berks RG12 1HN 690597 England