JUnit單元測試有時在一個@Test測試方法中會需要用多個Assertions來驗證,例如回傳結果物件的所有屬性是否皆正確。而直接執行多個Assertions及使用JUnit 5才有的Assertions.assertAll()區別如下。
2021/4/23
JUnit 測試方法中多個Assertions與assertAll()差別 multi-assertions-assertall-difference
2020/4/10
Spring Boot + JUnit 5 使用 MockMvc 測試 RestController API
Sprinb Boot 使用JUnit 5搭配Spring MockMvc測試RestController API範例。
2019/8/31
訂閱:
文章 (Atom)