Originally posted by John Todd:
Any reason you didn't mention JUnit 4?
In JUnit 4 you don't need to prefix your
test methods' names with anything. As I was referring to prefixes like "testXxx" and "shouldXxx", it just didn't feel necessary to mention JUnit 4.
Originally posted by John Todd:
For a project, do you suggest to employ both libraries (JUnit and JBehave for example), or to use only one?
Yes and yes.
There's value in keeping the setup simple - thus, use just one.
There's value in using the best tool for the job - thus, use both if you feel like it.
In other words, there's no one correct answer to this.