Re: [junit] false positives with expected=AnException.class?
- berndq wrote:
> I can see that this is nicer than a try/fail/catch construct.Yes. What could you do to avoid that problem?
> But what if the same exception type is thrown from another place
> than the expected one (inside the same test method)? Can't we have false
> positives then?
J. B. (Joe) Rainsberger :: http://www.jbrains.info
Your guide to software craftsmanship
JUnit Recipes: Practical Methods for Programmer Testing
2005 Gordon Pask Award for contribution Agile Software Practice