I need to write Matcher which will check multiple properties. For single property i've used:
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasProperty;
import org.hamcrest.Matcher;
import org.hamcrest.Matchers;
Matcher<Class> matcherName = Matchers.<Class> hasProperty("propertyName",equalTo(expectedValue));
how am I suppose to check more properties in one Matcher ?
verify(mock).method(argThat(matcherName));
– Disentitle