Using Java 8, we can do assertions on exceptions easily, by leveraging AssertJ and lambda expressions. 3.1. Using assertThatThrownBy().
確定! 回上一頁