AssertJ has entry() method. You can assert map value like this. assertThat(list) .extracting("myMap") .contains(entry("foo1", "bar1"), ...
確定! 回上一頁