lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r926673 - /lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java
Date Tue, 23 Mar 2010 17:24:58 GMT
Author: yonik
Date: Tue Mar 23 17:24:58 2010
New Revision: 926673

URL: http://svn.apache.org/viewvc?rev=926673&view=rev
Log:
tests: ignore expected exceptions

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java?rev=926673&r1=926672&r2=926673&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java
(original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/client/solrj/embedded/TestSolrProperties.java
Tue Mar 23 17:24:58 2010
@@ -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();



Mime
View raw message