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

Method match

moco-core/src/main/java/com/github/dreamhead/moco/Moco.java:220–222  ·  view source on GitHub ↗
(final Resource resource)

Source from the content-addressed store, hash-verified

218 }
219
220 public static RequestMatcher match(final Resource resource) {
221 return ApiUtils.match(extractor(resource.id()), checkNotNull(resource, "Resource should not be null"));
222 }
223
224 public static <T> RequestMatcher match(final RequestExtractor<T> extractor, final String expected) {
225 return ApiUtils.match(checkNotNull(extractor, "Extractor should not be null"), text(checkNotNullOrEmpty(expected, "Expected content should not be null")));

Callers 2

matcherMethod · 0.95
RestRequestDispatcherMethod · 0.95

Calls 5

matchMethod · 0.95
textMethod · 0.95
extractorMethod · 0.80
checkNotNullOrEmptyMethod · 0.80
idMethod · 0.65

Tested by

no test coverage detected