lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r926672 - /lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/distance/DistanceFunctionTest.java
Date Tue, 23 Mar 2010 17:19:22 GMT
Author: yonik
Date: Tue Mar 23 17:19:22 2010
New Revision: 926672

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

Modified:
    lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/distance/DistanceFunctionTest.java

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/distance/DistanceFunctionTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/distance/DistanceFunctionTest.java?rev=926672&r1=926671&r2=926672&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/distance/DistanceFunctionTest.java
(original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/search/function/distance/DistanceFunctionTest.java
Tue Mar 23 17:19:22 2010
@@ -101,6 +101,7 @@ public class DistanceFunctionTest extend
     assertQ(req("fl", "*,score", "q", "{!func}sqedist(x_td, y_td, z_td, w_td, 0, 0, 0, 0)",
"fq", "id:5"), "//float[@name='score']='" + (float) (2.3 * 2.3 + 5.5 * 5.5 + 7.9 * 7.9 + 2.4
* 2.4) + "'");
     //Pass in imbalanced list, throw exception
     try {
+      ignoreException("Illegal number of sources");
       assertQ(req("fl", "*,score", "q", "{!func}sqedist(x_td, y_td, z_td, w_td, 0, 0, 0)",
"fq", "id:1"), "//float[@name='score']='0.0'");
       assertTrue("should throw an exception", false);
     } catch (Exception e) {
@@ -108,6 +109,8 @@ public class DistanceFunctionTest extend
       assertNotNull(cause);
       assertTrue(cause instanceof SolrException);
     }
+    resetExceptionIgnores();
+
     //do one test of Euclidean
     //two dimensions, notice how we only pass in 4 value sources
     assertQ(req("fl", "*,score", "q", "{!func}dist(2, x_td, y_td, 0, 0)", "fq", "id:1"),
"//float[@name='score']='0.0'");



Mime
View raw message