protected void runInAllDataModes(TestRunnable call,DataMode... dataModes) throws Exception {
  if (F.isEmpty(dataModes))   dataModes=DataMode.values();
  for (int i=0; i < dataModes.length; i++) {
    dataMode=dataModes[i];
    if (!isCompatible()) {
      info("Skipping test in data mode: " + dataMode);
      continue;
    }
    info("Running test in data mode: " + dataMode);
    if (i != 0)     beforeTest();
    try {
      call.run();
    }
 catch (    Throwable e) {
      e.printStackTrace();
      throw e;
    }
 finally {
      if (i + 1 != DataMode.values().length)       afterTest();
    }
  }
}

protected void runInAllDataModes ( TestRunnable call , DataMode ... dataModes ) throws Exception { if ( F . isEmpty ( dataModes ) ) dataModes = DataMode . values ( ) ; for ( int i = 0 ; i < dataModes . length ; i ++ ) { dataMode = dataModes [ i ] ; if ( ! isCompatible ( ) ) { info ( "Skipping test in data mode: " + dataMode ) ; continue ; } info ( "Running test in data mode: " + dataMode ) ; if ( i != 0 ) beforeTest ( ) ; try { call . run ( ) ; } catch ( Throwable e ) { e . printStackTrace ( ) ; throw e ; } finally { if ( i + 1 != DataMode . values ( ) . length ) afterTest ( ) ; } } }
runs in all data modes .
