Created
February 28, 2017 15:15
-
-
Save anonymous/91637854364287b38897c0970aad7451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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