use of java.lang.ArithmeticException in project lucene-solr by apache.
the class TestSolrQueryResponse method testException.
@Test
public void testException() throws Exception {
final SolrQueryResponse response = new SolrQueryResponse();
assertEquals("exception initial value", null, response.getException());
final Exception newValue = (random().nextBoolean() ? (random().nextBoolean() ? new ArithmeticException() : new IOException()) : null);
response.setException(newValue);
assertEquals("exception new value", newValue, response.getException());
}
Aggregations