SOLR-7531: added a test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1679223 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2015-05-13 15:16:06 +00:00
parent 038c2b0cb7
commit 54c6e5f835
1 changed files with 3 additions and 0 deletions

View File

@ -117,6 +117,9 @@ public class TestSolrConfigHandler extends RestTestBase {
assertEquals("100", String.valueOf(getObjectByPath(props, true, ImmutableList.of("updateHandler", "autoCommit", "maxDocs")))); assertEquals("100", String.valueOf(getObjectByPath(props, true, ImmutableList.of("updateHandler", "autoCommit", "maxDocs"))));
assertEquals("10", String.valueOf(getObjectByPath(props, true, ImmutableList.of("updateHandler", "autoCommit", "maxTime")))); assertEquals("10", String.valueOf(getObjectByPath(props, true, ImmutableList.of("updateHandler", "autoCommit", "maxTime"))));
m = getRespMap("/config/updateHandler?wt=json", harness);
assertNotNull(getObjectByPath(m, true, ImmutableList.of("config","updateHandler", "commitWithin", "softCommit")));
m = (Map) getRespMap("/config?wt=json", harness).get("config"); m = (Map) getRespMap("/config?wt=json", harness).get("config");
assertNotNull(m); assertNotNull(m);