我想知道是否有人知道如何使用assertThat()和检查列表是否为空Matchers?
assertThat()
Matchers
我只能使用JUnit的最佳方式:
assertFalse(list.isEmpty());
但我希望在Hamcrest有一些方法可以做到这一点.
java collections junit hamcrest
collections ×1
hamcrest ×1
java ×1
junit ×1