mirror of https://github.com/apache/lucene.git
tests: ignore expected exceptions
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@926673 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f753f4197
commit
46668d80ef
|
@ -18,6 +18,8 @@
|
|||
package org.apache.solr.client.solrj.embedded;
|
||||
|
||||
import static junit.framework.Assert.assertEquals;
|
||||
|
||||
import org.apache.solr.SolrTestCaseJ4;
|
||||
import org.apache.solr.client.solrj.SolrQuery;
|
||||
import org.apache.solr.client.solrj.SolrServer;
|
||||
import org.apache.solr.client.solrj.request.CoreAdminRequest;
|
||||
|
@ -116,6 +118,8 @@ public class TestSolrProperties {
|
|||
up.add(doc);
|
||||
up.process(getSolrCore0());
|
||||
|
||||
SolrTestCaseJ4.ignoreException("unknown field");
|
||||
|
||||
// You can't add it to core1
|
||||
try {
|
||||
up.process(getSolrCore1());
|
||||
|
@ -133,12 +137,15 @@ public class TestSolrProperties {
|
|||
|
||||
// You can't add it to core1
|
||||
try {
|
||||
SolrTestCaseJ4.ignoreException("core0");
|
||||
up.process(getSolrCore0());
|
||||
fail("Can't add core1 field to core0!");
|
||||
}
|
||||
catch (Exception ex) {
|
||||
}
|
||||
|
||||
SolrTestCaseJ4.resetExceptionIgnores();
|
||||
|
||||
// now Make sure AAA is in 0 and BBB in 1
|
||||
SolrQuery q = new SolrQuery();
|
||||
QueryRequest r = new QueryRequest(q);
|
||||
|
|
Loading…
Reference in New Issue