Java 取得字串時,若希望當該字串為null時返回空字串,不是null返回原本的字串的作法如下。
2021/4/27
2021/4/26
Spring Boot 使用@Lookup取得prototype bean
2021/4/23
JUnit 測試方法中多個Assertions與assertAll()差別 multi-assertions-assertall-difference
JUnit單元測試有時在一個@Test測試方法中會需要用多個Assertions來驗證,例如回傳結果物件的所有屬性是否皆正確。而直接執行多個Assertions及使用JUnit 5才有的Assertions.assertAll()區別如下。
訂閱:
文章 (Atom)