@Override public synchronized void close() throws Exception { try { throwAndClear(); } finally { isClosed = true; } } }
@Override public void test() throws Exception { for (final String[] data: datum) { final String query = buildQuery(data); final E expected = buildResult(data); try { doTest(query, expected); } catch (final Exception|Error ex) { final ParameterizedTestFailure failure = new ParameterizedTestFailure(Joiner.on(" -- ").join(data), ex); if (!forgiving) { throw failure; } exception.addException(failure); } } exception.throwAndClear(); } }