APISonar


com.github.dreamhead.moco.Moco.json

> com > github > dreamhead > moco > Moco > json
com APIs github APIs dreamhead APIs moco APIs Moco APIs json APIs

Example 1
private RequestMatcher createRequestMatcherFromValue(final String name, final Object value) {
        if ("json".equalsIgnoreCase(name)) {
            return by(Moco.json(value));
        }

        if (value instanceof Map) {
            return createCompositeMatcher(name, castToMap(value));
        }

        if (value instanceof TextContainer) {
            return createSingleTextMatcher(name, (TextContainer) value);
        }

        throw new IllegalArgumentException("unknown configuration :" + value);
    }