tests: ignore expected exceptions

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@926807 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-03-23 21:55:51 +00:00
parent 73d4a3ec66
commit 6ebd260d01
1 changed files with 2 additions and 0 deletions

View File

@ -123,7 +123,9 @@ public class TermsComponentTest extends SolrTestCaseJ4 {
assertTrue("handler is null and it shouldn't be", handler != null);
rsp = new SolrQueryResponse();
rsp.add("responseHeader", new SimpleOrderedMap());
ignoreException("No terms.fl parameter specified");
handler.handleRequest(new LocalSolrQueryRequest(core, params), rsp);
resetExceptionIgnores();
Exception exception = rsp.getException();
assertTrue("exception is null and it shouldn't be", exception != null);
}