lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r926670 - /lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestBadConfig.java
Date Tue, 23 Mar 2010 17:15:21 GMT
Author: yonik
Date: Tue Mar 23 17:15:20 2010
New Revision: 926670

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

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestBadConfig.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestBadConfig.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestBadConfig.java?rev=926670&r1=926669&r2=926670&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestBadConfig.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/core/TestBadConfig.java Tue Mar 23 17:15:20
2010
@@ -17,8 +17,11 @@
 
 package org.apache.solr.core;
 
+import org.apache.solr.SolrTestCaseJ4;
 import org.apache.solr.util.AbstractSolrTestCase;
 import org.apache.solr.util.TestHarness;
+import org.junit.BeforeClass;
+
 import java.io.File;
 
 public class TestBadConfig extends AbstractSolrTestCase {
@@ -33,6 +36,8 @@ public class TestBadConfig extends Abstr
                        + getClass().getName());
     dataDir.mkdirs();
     try {
+     SolrTestCaseJ4.ignoreException("unset.sys.property");
+
       solrConfig = new SolrConfig(getSolrConfigFile());
       h = new TestHarness( dataDir.getAbsolutePath(),
                            solrConfig,
@@ -40,6 +45,7 @@ public class TestBadConfig extends Abstr
       fail("Exception should have been thrown");
     } catch (Exception e) {
       assertTrue(e.getMessage().contains("unset.sys.property"));
+      SolrTestCaseJ4.resetExceptionIgnores();
     }
   }
     



Mime
View raw message