protected int testRunAndPrint(QueryType type, String query) throws Exception{
query = query.replace("[WORKING_PATH]", TestTools.getWorkingPath());
PrintingResultsListener resultListener = new PrintingResultsListener(client.getConfig(), Format.TSV, VectorUtil.DEFAULT_COLUMN_WIDTH);
client.runQuery(type, query, resultListener);
return resultListener.await();
}
protected void testWithListener(QueryType type, String query, UserResultsListener resultListener) {
query = query.replace("[WORKING_PATH]", TestTools.getWorkingPath());
client.runQuery(type, query, resultListener);