From 9a77cfbba0b0462c385f369a9edf85fd1103e70f Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 10 Jul 2013 20:06:06 +0000 Subject: [PATCH] tests: ignore expected exceptions git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1501950 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/solr/handler/JsonLoaderTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java b/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java index 58eb1364cae..36ec068bddb 100644 --- a/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java +++ b/solr/core/src/test/org/apache/solr/handler/JsonLoaderTest.java @@ -44,7 +44,7 @@ public class JsonLoaderTest extends SolrTestCaseJ4 { 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 SolrTestCaseJ4 { "'rollback': {}\n" + "\n" + "}\n" + - "").replace('\'', '"'); + ""); public void testParsing() throws Exception @@ -395,6 +395,9 @@ public class JsonLoaderTest extends SolrTestCaseJ4 { 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 SolrTestCaseJ4 { } } + unIgnoreException("big_integer_t"); } @Test