hamcrest-submatcher
===================

Type-safe Hamcrest matcher for sub-properties.

Usage
-----

Single sub-property:

	assertThat(actual, such(that(Person.class).getName(), is("x")));
	
Multiple sub-properties:

	assertThat(actual, both(such(that(Person.class).getName(), is("x")))
		.and(such(that(Person.class).getAge(), is(1)))
	);

Nested sub-properties:

	assertThat(actual, such(that(Person.class).getAddress(),
		such(that(Address.class).getCity(), is("x"))
	));

hamcrest-submatcher
===================

Type-safe Hamcrest matcher for sub-properties.

Usage
-----

Single sub-property:

	assertThat(actual, such(that(Person.class).getName(), is("x")));
	
Multiple sub-properties:

	assertThat(actual, allOf(
		such(that(Person.class).getName(), is("x")),
		such(that(Person.class).getAge(), is(1))
	));

Nested sub-properties:

	assertThat(actual, such(that(Person.class).getAddress(),
		such(that(Address.class).getCity(), is("x"))
	));

Revert "Used both() instead of allOf() for multiple properties example"
Revert "Used both() instead of allOf() for multiple properties example"

This reverts commit e04f16912c15527356f7e485c8057cb42a0402d7.

Now prefer allOf() due to more succinct mismatch description.
