This is a new concept in Hamcrest, orthogonal to Matchers.
A Refinement allows you to refine which part of the object is being tested.
e.g.
assertThat(
page,
inTable("sometable").cell("name", 0), // refinement
containsString("joe"));
This allows you to easiy navigate an object even if the methods aren't on
the object being tested (which is frequently the test).
LiFT does this well.
Original issue reported on code.google.com by joe.wal...@gmail.com on 14 Dec 2006 at 7:13
Original issue reported on code.google.com by
joe.wal...@gmail.com
on 14 Dec 2006 at 7:13