MCPcopy Create free account
hub / github.com/dreamhead/moco / eq

Method eq

moco-core/src/main/java/com/github/dreamhead/moco/Moco.java:212–214  ·  view source on GitHub ↗
(final RequestExtractor<T> extractor, final String expected)

Source from the content-addressed store, hash-verified

210 }
211
212 public static <T> RequestMatcher eq(final RequestExtractor<T> extractor, final String expected) {
213 return eq(checkNotNull(extractor, "Extractor should not be null"), text(checkNotNull(expected, "Expected content should not be null")));
214 }
215
216 public static <T> RequestMatcher eq(final RequestExtractor<T> extractor, final Resource expected) {
217 return new EqRequestMatcher<>(checkNotNull(extractor, "Extractor should not be null"), checkNotNull(expected, "Expected content should not be null"));

Calls 1

textMethod · 0.95