/* Added by Rick Mugridge */ private void interpretTables(FitDocument documents) { for (FitTable table : documents.tables()) { try { Fixture fixture = getLinkedFixtureWithArgs(table); fixture.doTable(table); counts.tally(table.getCounts()); } catch (Throwable e) { table.exception(e); counts.exceptions++; } } }
/* Added by Rick Mugridge, from FitNesse */ protected Map<String, String> getArgsForTable(FitTable table) { return table.getArguments(); }
/* Added from FitNesse*/ protected Fixture getLinkedFixtureWithArgs(FitTable table) { Fixture fixture = loadFixture(table.getFixtureClass()); fixture.setParams(getArgsForTable(table)); return fixture; }