I saw this post
assertThat( myClass.getMyItems(), contains( hasProperty("foo", is("bar")), hasProperty("name", is("bar")) ));
how can it work?
doesn't hasItem expect one matcher as an argument and not a list of matchers?
hasItem
Aucun commentaire:
Enregistrer un commentaire