This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new aa5d93d  SOLR-15619: three trivial test tweaks
aa5d93d is described below

commit aa5d93d602569f301f4558581edcabac5eaf78c4
Author: Christine Poerschke <[email protected]>
AuthorDate: Mon Sep 6 14:23:03 2021 +0100

    SOLR-15619: three trivial test tweaks
---
 solr/core/src/test/org/apache/solr/util/TestSolrJacksonAnnotation.java | 2 ++
 solr/solrj/src/test/org/apache/solr/common/util/JsonValidatorTest.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/solr/core/src/test/org/apache/solr/util/TestSolrJacksonAnnotation.java 
b/solr/core/src/test/org/apache/solr/util/TestSolrJacksonAnnotation.java
index 23bea78..baaef7b 100644
--- a/solr/core/src/test/org/apache/solr/util/TestSolrJacksonAnnotation.java
+++ b/solr/core/src/test/org/apache/solr/util/TestSolrJacksonAnnotation.java
@@ -65,7 +65,9 @@ public class TestSolrJacksonAnnotation extends SolrTestCase {
     assertTrue(errs.get(0).contains("Missing required attribute"));
     m.put("friendlyIntFld", Boolean.TRUE);
     errs = validator.validateJson(m);
+    assertTrue(errs.get(0).contains("Value is not valid"));
     m.put("friendlyIntFld", "another String");
+    errs = validator.validateJson(m);
     assertTrue(errs.get(0).contains("Value is not valid"));
   }
 
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 5f7c2c7..3ab121e 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
@@ -85,7 +85,7 @@ public class JsonValidatorTest extends SolrTestCaseJ4  {
           "   adult : {type: Boolean}," +
           "   name: {type: string}}}");
     });
-    assertTrue(e.getMessage().contains("Unknown type"));
+    assertTrue(e.getMessage().contains("Unknown type int"));
 
     e = expectThrows(Exception.class, () -> {
       new JsonSchemaValidator("{" +

Reply via email to