[xwiki-devs] Testing exceptions in JUnit 4.7
Hi, I've been wondering how to test exceptions in JUnit 4.x when you want to assert the exception message. Just found an answer: http://www.wakaleo.com/blog/225-testing-exceptions-in-junit-47 It looks to me slightly better than using the try/fail/catch strategy. WDYT? Thanks -Vincent
On Mon, Sep 28, 2009 at 21:23, Vincent Massol <[email protected]> wrote:
Hi,
I've been wondering how to test exceptions in JUnit 4.x when you want to assert the exception message. Just found an answer: http://www.wakaleo.com/blog/225-testing-exceptions-in-junit-47
It looks to me slightly better than using the try/fail/catch strategy.
WDYT?
Yes this way is better, i used to use this when i worked with nunit.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (2)
-
Thomas Mortagne -
Vincent Massol