Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class MatchSimpleUri implements MatchRule {
@Override
public boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) {
return incomingRequest.getUri().equals(expectedRequest.getUri());
}
@Override
public String getMatchFailureDescriptionForRequests(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) {
return String.format("URI Mismatch%nIncoming URI: %s%nExpected URI: %s%n",
incomingRequest.getUri(),
expectedRequest.getUri());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.