在測試中,我們通常有 assertNotNull ,但它不執行從可空型別到不可空型別的智慧強制轉換。我得寫這樣的東西: if (test == null) { Assert.fail("") return }
確定! 回上一頁