From 46668d80efa6649e009d7b58ba8d6c67bed86a3f Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Tue, 23 Mar 2010 17:24:58 +0000 Subject: [PATCH] tests: ignore expected exceptions git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@926673 13f79535-47bb-0310-9956-ffa450edef68 --- .../solr/client/solrj/embedded/TestSolrProperties.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java b/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java index 9aed3a76d7b..e847795644f 100644 --- a/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java +++ b/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java @@ -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,11 +137,14 @@ 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();