From 7fa19d2676afc8a9545d903239c942044d7b2765 Mon Sep 17 00:00:00 2001 From: Christine Poerschke Date: Tue, 16 Oct 2018 10:52:11 -0400 Subject: [PATCH] SOLR-12876: upon failure report exception message in ShardParamsTest.testGetShardsTolerantAsBool --- .../src/test/org/apache/solr/common/params/ShardParamsTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java b/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java index 5694972d1d1..b17f217edcb 100644 --- a/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java +++ b/solr/solrj/src/test/org/apache/solr/common/params/ShardParamsTest.java @@ -77,6 +77,6 @@ public class ShardParamsTest extends LuceneTestCase // values that aren't "requireZkConnected" or boolean should throw an exception params.set(ShardParams.SHARDS_TOLERANT, "bogusValue"); Exception exception = expectThrows(SolrException.class, () -> ShardParams.getShardsTolerantAsBool(params)); - assertTrue(exception.getMessage().startsWith("invalid boolean value: ")); + assertTrue(exception.getMessage(), exception.getMessage().startsWith("invalid boolean value: ")); } }