Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-14871: remove unused test

noblepaul5bc7fb286182
diff --git a/solr/solrj/src/test/org/apache/solr/common/util/JsonValidatorTest.java b/solr/solrj/src/test/org/apache/solr/common/util/JsonValidatorTest.java
index 5b5084119dd..b4807e3d373 100644
--- a/solr/solrj/src/test/org/apache/solr/common/util/JsonValidatorTest.java
+++ b/solr/solrj/src/test/org/apache/solr/common/util/JsonValidatorTest.java
@@ -40,7 +40,6 @@ public class JsonValidatorTest extends SolrTestCaseJ4 {
checkSchema("core.config.Commands");
checkSchema("core.SchemaEdit");
checkSchema("cluster.configs.Commands");
-// checkSchema("cluster.Commands");
}
@@ -173,13 +172,6 @@ public class JsonValidatorTest extends SolrTestCaseJ4 {
}
- public void testNullObjectValue() {
- ValidatingJsonMap spec = Utils.getSpec("cluster.Commands").getSpec();
- JsonSchemaValidator validator = new JsonSchemaValidator((Map) Utils.getObjectByPath(spec, false, "/commands/set-obj-property"));
- List<String> object = validator.validateJson(Utils.fromJSONString("{collectionDefaults: null}"));
- assertNull(object);
- }
-
private void checkSchema(String name) {
ValidatingJsonMap spec = Utils.getSpec(name).getSpec();
@SuppressWarnings({"rawtypes"})