You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2018/12/17 09:07:53 UTC

lucene-solr:master: Fix compilation.

Repository: lucene-solr
Updated Branches:
  refs/heads/master 5e305e2f0 -> 6f08eee2f


Fix compilation.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/6f08eee2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/6f08eee2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/6f08eee2

Branch: refs/heads/master
Commit: 6f08eee2fd272a6d73217f9a7e735ced7aba460a
Parents: 5e305e2
Author: Adrien Grand <jp...@gmail.com>
Authored: Mon Dec 17 10:07:36 2018 +0100
Committer: Adrien Grand <jp...@gmail.com>
Committed: Mon Dec 17 10:07:36 2018 +0100

----------------------------------------------------------------------
 .../solrj/impl/ConcurrentUpdateHttp2SolrClientBadInputTest.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6f08eee2/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateHttp2SolrClientBadInputTest.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateHttp2SolrClientBadInputTest.java b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateHttp2SolrClientBadInputTest.java
index 62515ca..7b271ca 100644
--- a/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateHttp2SolrClientBadInputTest.java
+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/impl/ConcurrentUpdateHttp2SolrClientBadInputTest.java
@@ -28,8 +28,6 @@ import org.apache.solr.client.solrj.embedded.JettyConfig;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
-import static org.junit.internal.matchers.StringContains.containsString;
-
 public class ConcurrentUpdateHttp2SolrClientBadInputTest extends SolrJettyTestBase {
   private static final List<String> NULL_STR_LIST = null;
   private static final List<String> EMPTY_STR_LIST = new ArrayList<>();
@@ -93,7 +91,8 @@ public class ConcurrentUpdateHttp2SolrClientBadInputTest extends SolrJettyTestBa
 
     if (expectedStrings != null) {
       for (String expectedString : expectedStrings) {
-        assertThat(thrown.getMessage(), containsString(expectedString));
+        assertTrue("[" + thrown.getMessage() + "] doesn't contain [" + expectedString + "]",
+            thrown.getMessage().contains(expectedString));
       }
     }
   }