// determine which statspec file to use for this test id
private static void resetStatSpecs(String testId, List testContainers,
                                     String statSpecFileOverride) {
    if (testContainers.size() == 1) { // special case
      TestContainer testContainer = (TestContainer)testContainers.get(0);
      // determine which statspec file to use
      String statSpecFile = statSpecFileOverride;
      if (statSpecFileOverride == null) {
        statSpecFile = getLastStatSpecFile(testContainer);
      } // @todo lises support option to use union of all statspecs
      // reset the statspec file for each test in the container
      List tests = testContainer.getTests();
      for (Iterator i = tests.iterator(); i.hasNext();) {
        Test test = (Test)i.next();
        test.resetStatSpecs(statSpecFile);
      }
    } else {
      // determine which statspec file to use for this test id
      String statSpecFile = statSpecFileOverride;
      if (statSpecFileOverride == null) {
        statSpecFile = getLastStatSpecFile(testId, testContainers);
      } // @todo lises support option to use union of all statspecs
      // reset the statspec file for each test with the given test id
      for (Iterator i = testContainers.iterator(); i.hasNext();) {
        TestContainer testContainer = (TestContainer)i.next();
        List tests = testContainer.getTestsWithId(testId);
        for (Iterator j = tests.iterator(); j.hasNext();) {
          Test test = (Test)j.next();
          test.resetStatSpecs(statSpecFile);
        }
      }
    }
  }
}
} else {
// determine which statspec file to use for this test id
String statSpecFile = statSpecFileOverride;
if (statSpecFileOverride == null) {
if (statSpecFileOverride == null) {
statSpecFile = getLastStatSpecFile(testContainer);
} // @todo lises support option to use union of all statspecs
// reset the statspec file for each test in the container
List tests = testContainer.getTests();
for (Iterator i = tests.iterator(); i.hasNext();) {
Test test = (Test)i.next();
test.resetStatSpecs(statSpecFile);
}
} else {
// determine which statspec file to use for this test id
String statSpecFile = statSpecFileOverride;
if (statSpecFileOverride == null) {
statSpecFile = getLastStatSpecFile(testId, testContainers);
} // @todo lises support option to use union of all statspecs
// reset the statspec file for each test with the given test id
for (Iterator i = testContainers.iterator(); i.hasNext();) {
TestContainer testContainer = (TestContainer)i.next();
List tests = testContainer.getTestsWithId(testId);
for (Iterator j = tests.iterator(); j.hasNext();) {
Test test = (Test)j.next();
private static void resetStatSpecs(String testId, List testContainers,
String statSpecFileOverride) {
if (testContainers.size() == 1) { // special case
TestContainer testContainer = (TestContainer)testContainers.get(0);
// determine which statspec file to use
String statSpecFile = statSpecFileOverride;
if (statSpecFileOverride == null) {
statSpecFile = getLastStatSpecFile(testContainer);
} // @todo lises support option to use union of all statspecs
// reset the statspec file for each test in the container
List tests = testContainer.getTests();
for (Iterator i = tests.iterator(); i.hasNext();) {
Test test = (Test)i.next();
test.resetStatSpecs(statSpecFile);
}
} else {
// determine which statspec file to use for this test id
String statSpecFile = statSpecFileOverride;
if (statSpecFileOverride == null) {
statSpecFile = getLastStatSpecFile(testId, testContainers);
} // @todo lises support option to use union of all statspecs
// reset the statspec file for each test with the given test id
for (Iterator i = testContainers.iterator(); i.hasNext();) {
TestContainer testContainer = (TestContainer)i.next();
List tests = testContainer.getTestsWithId(testId);
for (Iterator j = tests.iterator(); j.hasNext();) {
Test test = (Test)j.next();
test.resetStatSpecs(statSpecFile);
}
}
}
}