3 ms·
Google Truth 1.0, a simpler AssertJ: assertThat(text).contains(“test gmail.com”)
- draw_down 7y agoWhy `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...