Fix compilation.

This commit is contained in:
Adrien Grand 2018-12-17 10:07:36 +01:00
parent 5e305e2f00
commit 6f08eee2fd
1 changed files with 2 additions and 3 deletions

View File

@ -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));
}
}
}