Open
Description
Hi guys,
I've been looking at the tests we have so far and I spotted few things which I believe we should address any time soon to avoid confusion in the future.
- We have at least 3 different ways for naming test methods [1] [2] [3]. I personally favor option 3, as test methods tend to be lengthy soReadingThemInTheCamelCaseFormCanBeQuiteTrickyFromTimeToTime. It's also easier to spot them on the stack trace.
- As per @aslakknutsen suggestion small README about each and every sample and the goals for tests would be beneficial not only to understand what one (or they...) can find there but also what can be implemented if missing (some hints about missing test cases etc.)
- The testing framework: even though JUnit is defacto a standard why couldn't we use Spock? It's not only cleaner, more structured and descriptive way of expressing the tests, but will be also a dog fooding exercise as Arquillian has an extension for that (yeah yeah I do have hidden agenda here). Also when it comes to assertions I would stronly opt for assertj as it's simply way more feature rich and growing very rapidly. On top of that it's easier to write such assertions in the IDE, as it is fluent interface (so we can rely on code completion) rather than onioning in the Hamcrest style.
That said, I would be happy to help in converting/unifying our code base. Let's just agree on sth instead of putting more freestyle code here and there.