Ejemplo n.º 1
0
  /**
   * @param testium
   * @param tgFile
   * @return
   * @throws Error
   */
  private static TestGroup readTestGroup(Testium testium, RunTimeData anRtData) throws Error {
    Trace.println(Trace.UTIL, "readTestGroup( Testium, runTimeData )", true);

    File tgFile = anRtData.getValueAsFile(Testium.TESTFILE);
    TestGroup testGroup;
    try {
      testGroup = testium.readTestGroup(tgFile);
    } catch (IOError e) {
      Trace.print(Trace.UTIL, e);
      throw new Error("TestGroup could not be read: " + tgFile.getPath(), e);
    }
    return testGroup;
  }