APISonar


org.apache.solr.SolrTestCaseJ4.json

> org > apache > solr > SolrTestCaseJ4 > json
org APIs apache APIs solr APIs SolrTestCaseJ4 APIs json APIs

Example 1
public static void runConfigCommand(RestTestHarness harness, String uri, String payload) throws IOException {
    String response = harness.post(uri, SolrTestCaseJ4.json(payload));
    Map map = (Map) ObjectBuilder.getVal(new JSONParser(new StringReader(response)));
    assertNull(response, map.get("errors"));
  }