如果能够将 getId() 方法添加到 User ,则可以使用提取器解决此问题: assertThat(users) .extracting("id") .containsAll ...
確定! 回上一頁