3 ms·
Why `assertThat(...)` instead of just `assert(...)`? There is such a strange tendency to make testing stuff, specifically, read like English.
by draw_down 7y ago
Why `assertThat(...)` instead of just `assert(...)`? There is such a strange tendency to make testing stuff, specifically, read like English.
- cpovirk 7y agoSorry, not sure how I missed this comment earlier. `assert` is a keyword in Java, so we can't use it as a method name: https://docs.oracle.com/javase/7/docs/technotes/guides/language/assert.html https://docs.oracle.com/javase/7/docs/technotes/guides/langu...