tests: ignore expected exceptions

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1501950 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2013-07-10 20:06:06 +00:00
parent ed9d17b991
commit 9a77cfbba0
1 changed files with 6 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class JsonLoaderTest extends SolrTestCaseJ4 {
initCore("solrconfig.xml","schema.xml"); initCore("solrconfig.xml","schema.xml");
} }
static String input = ("{\n" + static String input = json("{\n" +
"\n" + "\n" +
"'add': {\n" + "'add': {\n" +
" 'doc': {\n" + " 'doc': {\n" +
@ -82,7 +82,7 @@ public class JsonLoaderTest extends SolrTestCaseJ4 {
"'rollback': {}\n" + "'rollback': {}\n" +
"\n" + "\n" +
"}\n" + "}\n" +
"").replace('\'', '"'); "");
public void testParsing() throws Exception public void testParsing() throws Exception
@ -395,6 +395,9 @@ public class JsonLoaderTest extends SolrTestCaseJ4 {
public void testAddBigIntegerValueToTrieField() throws Exception { public void testAddBigIntegerValueToTrieField() throws Exception {
// Adding a BigInteger to a long field should fail // Adding a BigInteger to a long field should fail
// BigInteger.longValue() returns only the low-order 64 bits. // BigInteger.longValue() returns only the low-order 64 bits.
ignoreException("big_integer_t");
try { try {
updateJ(json( "[{'id':'1','big_integer_tl':12345678901234567890}]" ), null); updateJ(json( "[{'id':'1','big_integer_tl':12345678901234567890}]" ), null);
fail("A BigInteger value should overflow a long field"); fail("A BigInteger value should overflow a long field");
@ -415,6 +418,7 @@ public class JsonLoaderTest extends SolrTestCaseJ4 {
} }
} }
unIgnoreException("big_integer_t");
} }
@Test @Test