I'm looking info about lambda although I'm not able to find something similar to below function. It belongs to class org.springframework.test.web.servlet.result.JsonPathResultMatchers , and ResultMatcher is a @FunctionalInterface, and result is type MvcResult and jsonPathHelper.doesNotExist return void
public ResultMatcher doesNotExist() {
return result -> jsonPathHelper.doesNotExist(getContent(result));
}
I call above one through
jsonPath("$._embedded" ).doesNotExist()
I have literally no idea about:
if jsonPathHelper.doesNotExist return void then why doesNotExist return ResultMatcher.
Class has anything similar to result, where is this argument come from?
Thanks