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

Method contain

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

Source from the content-addressed store, hash-verified

252 }
253
254 public static RequestMatcher contain(final Resource resource) {
255 return ApiUtils.contain(extractor(resource.id()), checkNotNull(resource, "Resource should not be null"));
256 }
257
258 public static <T> RequestMatcher contain(final RequestExtractor<T> extractor, final String expected) {
259 return ApiUtils.contain(checkNotNull(extractor, "Extractor should not be null"),

Callers 2

should_containMethod · 0.45

Calls 5

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

Tested by 2

should_containMethod · 0.36