JsonMatchers.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:com-liferay-apio-architect 作者:
/**
 * Returns a matcher that checks if a {@code JsonElement} is a valid JSON
 * object containing an element.
 *
 * @return the matcher that checks if a {@code JsonElement} is a valid JSON
 *         object containing an element
 */
public static Matcher<JsonElement> aJsonObjectWhere(
    String key, Matcher<? extends JsonElement> matcher) {

    Conditions.Builder builder = new Conditions.Builder();

    Conditions conditions = builder.where(
        key, matcher
    ).build();

    return aJsonObjectWith(conditions);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号