yong-hu / objenesis

Automatically exported from code.google.com/p/objenesis
0 stars 0 forks source link

Refinements #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
This was an issue submitted to the wrong project. Ignore it!

Original comment by joe.wal...@gmail.com on 16 Dec 2006 at 9:57