Interface MockClient.RequestMatcher
- Enclosing class:
MockClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The RequestMatcher provides a way to match a particular request to a response prepared
through
MockClient.prepareResponse(RequestMatcher, AbstractResponse). Basically this allows testers
to inspect the request body for the type of the request or for specific fields that should be set,
and to fail the test if it doesn't match.-
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(org.apache.kafka.common.requests.AbstractRequest body)
-
Method Details
-
matches
boolean matches(org.apache.kafka.common.requests.AbstractRequest body)
-