コード例 #1
0
 /* 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++;
     }
   }
 }
コード例 #2
0
 /* Added by Rick Mugridge, from FitNesse */
 protected Map<String, String> getArgsForTable(FitTable table) {
   return table.getArguments();
 }
コード例 #3
0
 /* Added from FitNesse*/
 protected Fixture getLinkedFixtureWithArgs(FitTable table) {
   Fixture fixture = loadFixture(table.getFixtureClass());
   fixture.setParams(getArgsForTable(table));
   return fixture;
 }