lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r1501950 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java
Date Wed, 10 Jul 2013 20:06:06 GMT
Author: yonik
Date: Wed Jul 10 20:06:06 2013
New Revision: 1501950

URL: http://svn.apache.org/r1501950
Log:
tests: ignore expected exceptions

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

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java?rev=1501950&r1=1501949&r2=1501950&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java Wed Jul
10 20:06:06 2013
@@ -44,7 +44,7 @@ public class JsonLoaderTest extends Solr
     initCore("solrconfig.xml","schema.xml");
   }
   
-  static String input = ("{\n" +
+  static String input = json("{\n" +
       "\n" +
       "'add': {\n" +
       "  'doc': {\n" +
@@ -82,7 +82,7 @@ public class JsonLoaderTest extends Solr
       "'rollback': {}\n" +
       "\n" +
       "}\n" +
-      "").replace('\'', '"');
+      "");
 
 
   public void testParsing() throws Exception
@@ -395,6 +395,9 @@ public class JsonLoaderTest extends Solr
   public void testAddBigIntegerValueToTrieField() throws Exception {
     // Adding a BigInteger to a long field should fail
     // BigInteger.longValue() returns only the low-order 64 bits.
+
+    ignoreException("big_integer_t");
+
     try {
       updateJ(json( "[{'id':'1','big_integer_tl':12345678901234567890}]" ), null);
       fail("A BigInteger value should overflow a long field");
@@ -415,6 +418,7 @@ public class JsonLoaderTest extends Solr
       }
     }
 
+    unIgnoreException("big_integer_t");
   }
 
   @Test



Mime
View raw message