protected void interpretTables(Parse tables) { try { // Don't create the first fixture again, because creation may do something important. getArgsForTable(tables); // get them again for the new fixture object doTable(tables); } catch (Exception ex) { exception(tables.at(0, 0, 0), ex); listener.tableFinished(tables); return; } interpretFollowingTables(tables); }
protected Fixture getLinkedFixtureWithArgs(Parse tables) throws Throwable { Parse header = tables.at(0, 0, 0); Fixture fixture = loadFixture(header.text()); fixture.counts = counts; fixture.summary = summary; fixture.getArgsForTable(tables); return fixture; }
@Override public void doTable(Parse table) { String[] args = this.getArgs(); doActionOnSemaphore(args[1], args[0], table.at(0, 0)); super.doTable(table); }
protected Parse buildRows(Object[] rows) { Parse root = new Parse(null, null, null, null); Parse next = root; for (Object row : rows) { next = next.more = new Parse("tr", null, buildCells(row), null); } return root.more; }
@Override public void check(Parse cell, TypeAdapter a) { try { executeIfNeeded(); } catch (Exception e) { exception(cell, e); } super.check(cell, a); }
protected void interpretTables(Parse tables) { try { // Don't create the first fixture again, because creation may do something important. getArgsForTable(tables); // get them again for the new fixture object doTable(tables); } catch (Exception ex) { exception(tables.at(0, 0, 0), ex); listener.tableFinished(tables); return; } interpretFollowingTables(tables); }
@Override public void doTable(Parse table) { String[] args = this.getArgs(); doActionOnSemaphore(args[1], args[0], table.at(0, 0)); super.doTable(table); }