I’ve just updated the JUnit Anti-Patterns page with another example seen in the wild:
- Anti-pattern: Mixing Production and Test Code
While I was there, I also added a link to the Test Smells page on the xUnit Patterns website (the link is on the left hand side in the “External Resources” section).
I guess my next update to that page will be to tweak all the example code snippets to use JUnit 4. They’re all still using JUnit 3 at the moment. It’s definitely time to catch up with on that one.