Jul 10, 2017 · 1 min read
Sounds very familiar to me :P
Just a tiny thing, use “import static” where is applicable to don’t get bothered or reading “Mockito.blahblah” or “Assert.assertThat” blah blah.
Also consider the usage of “Hamcrest” to make the assertions as readable as possible.
Ah! and another fancy way to check if your method thrown an exception (and if, for example, the exception contains an expected message) is using @Rule annotation.
