@Test public void testIsMatch() throws Exception { RecordedHttpRequest recordedHttpRequest1 = new RecordedHttpRequest("GET", null, null, null); RecordedHttpRequest recordedHttpRequest2 = new RecordedHttpRequest("GET", null, null, null); MatchRule matchRule = new MatchMethod(); Assert.assertTrue(matchRule.test(recordedHttpRequest1, recordedHttpRequest2)); }
@Override public boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) { return incomingRequest.getMethod().equals(expectedRequest.getMethod()); }
MatchMethod extends BaseMatchRule { @Override public boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) { return incomingRequest.getMethod().equals(expectedRequest.getMethod()); } }
MatchMethod extends BaseMatchRule { @Override public boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) { return incomingRequest.getMethod().equals(expectedRequest.getMethod()); }  }
MatchMethod extends BaseMatchRule { @Override public boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) { return incomingRequest.getMethod().equals(expectedRequest.getMethod()); }  @Override boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest); @Override String getMatchFailureDescriptionForRequests(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest); }
MatchMethod extends BaseMatchRule { @Override public boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest) { return incomingRequest.getMethod().equals(expectedRequest.getMethod()); }  @Override boolean test(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest); @Override String getMatchFailureDescriptionForRequests(RecordedHttpRequest incomingRequest, RecordedHttpRequest expectedRequest);  }