/**
* Returns a {@link Matcher} that checks if the field contains the provided
* types as a JSON Array.
*
* @param types the types to match
* @return a matcher for a type JSON Array
* @review
*/
public static Matcher<? extends JsonElement> containsTheTypes(
String... types) {
Stream<String> stream = Arrays.stream(types);
List<Matcher<? super JsonElement>> matchers = stream.map(
CoreMatchers::equalTo
).map(
JsonMatchers::aJsonString
).collect(
Collectors.toList()
);
return is(aJsonArrayThat(contains(matchers)));
}
JSONLDTestUtil.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:com-liferay-apio-architect
作者:
评论列表
文章目录