use of com.github.dreamhead.moco.extractor.ContentRequestExtractor in project moco by dreamhead.
the class XmlRequestMatcherTest method should_return_false_for_empty_content.
@Test
public void should_return_false_for_empty_content() {
XmlRequestMatcher unitUnderTest = new XmlRequestMatcher(new ContentRequestExtractor(), text("<request><parameters><id>1</id></parameters></request>"));
HttpRequest request = DefaultHttpRequest.builder().withContent(MessageContent.content("")).build();
assertThat(unitUnderTest.match(request), is(false));
}
Aggregations