我做了一个简单的测试:
Person p = new Person();
p.setFirstName("Stéphane");
p.setLastName("Traumat");
assertThat(p)
.extracting("firstName", "lastName")
.contains(tuple("Stéphane", "Traumat"));
我得到一个奇怪的结果:
java.lang.AssertionError:
Expecting:
<["Stéphane", "Traumat"]>
to contain:
<[("Stéphane", "Traumat")]>
but could not find:
<[("Stéphane", "Traumat")]>
任何人都可以帮助我吗?