mirror of
https://github.com/apache/lucene.git
synced 2025-02-10 03:55:46 +00:00
SOLR-14871: remove unused test
This commit is contained in:
parent
e5d3e4d567
commit
5bc7fb2861
@ -40,7 +40,6 @@ public class JsonValidatorTest extends SolrTestCaseJ4 {
|
|||||||
checkSchema("core.config.Commands");
|
checkSchema("core.config.Commands");
|
||||||
checkSchema("core.SchemaEdit");
|
checkSchema("core.SchemaEdit");
|
||||||
checkSchema("cluster.configs.Commands");
|
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) {
|
private void checkSchema(String name) {
|
||||||
ValidatingJsonMap spec = Utils.getSpec(name).getSpec();
|
ValidatingJsonMap spec = Utils.getSpec(name).getSpec();
|
||||||
@SuppressWarnings({"rawtypes"})
|
@SuppressWarnings({"rawtypes"})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user