private void genValidatorTest() { final File file = new File("validatorTest.sql"); try (PrintWriter pw = Util.printWriter(file)) { Method[] methods = getJunitMethods(SqlValidatorSpooler.class); for (Method method : methods) { final SqlValidatorSpooler test = new SqlValidatorSpooler(pw); final Object result = method.invoke(test); assert result == null; } } catch (IOException | IllegalAccessException | IllegalArgumentException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e.getCause()); } }
private void genValidatorTest() { final File file = new File("validatorTest.sql"); try (PrintWriter pw = Util.printWriter(file)) { Method[] methods = getJunitMethods(SqlValidatorSpooler.class); for (Method method : methods) { final SqlValidatorSpooler test = new SqlValidatorSpooler(pw); final Object result = method.invoke(test); assert result == null; } } catch (IOException | IllegalAccessException | IllegalArgumentException e) { throw new RuntimeException(e); } catch (InvocationTargetException e) { throw new RuntimeException(e.getCause()); } }