Basically, it allows writing assertions like
assertThat(person, Person()
.withFirstName("John")
.withLastName("Smith")
.withAddress(Address()
.withCity("New York")
.withStreetAddress(containsString("42nd"))
.withZip(12345)
.matcher())
.matcher());
Incidentally, I've introduced new implementation concepts of Condition and Step that might be helpful. See if it works for you.
S.
> --
> You received this message because you are subscribed to the Google Groups "Hamcrest Developers" group.
> To post to this group, send email to hamcre...@googlegroups.com.
> To unsubscribe from this group, send email to hamcrest-dev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hamcrest-dev?hl=en.
>
Steve Freeman
Winner of the Agile Alliance Gordon Pask award 2006
Book: http://www.growing-object-oriented-software.com
+44 797 179 4105
Twitter: @sf105
Higher Order Logic Limited
Registered office. 2 Church Street, Burnham, Bucks, SL1 7HZ.
Company registered in England & Wales. Number 7522677