Re: ExpectedException: expecting a cause's message

Charlie Poole <[email protected]> Tue, 30 Jul 2013 15:07:40 -0700
Newsgroups gmane.comp.java.junit.user
Message-ID <CAJ+=fjg=uf+4ZLeshWgMDOG45bKyA_CeS69zi6KpFz_Wjb0MLw@mail.gmail.com>
As a general rule, I only test the messages of exceptions I'm creating and
throwing myself, in languages that support it. And then only to test that
I'm setting the message correctly.

Charlie


On Tue, Jul 30, 2013 at 3:33 AM, Tomek Kaczanowski <
[email protected]> wrote:

> **
>
>
> please try http://code.google.com/p/catch-exception/ instead of anything
> that unit testing frameworks provide
>
> P.S. Agreed with Colin: there are only rare cases when testing exc message
> is the right thing to do.
>
> --
> Regards / Pozdrawiam
> Tomek Kaczanowski
> http://practicalunittesting.com
>
>
> [Non-text portions of this message have been removed]
>
>  
>


[Non-text portions of this message have been removed]