// test is missing from this container
private static List buildValueComparators(String testId,
                                            List testContainers) {
    List comparators = new ArrayList();
    for (int i = 0; i < testContainers.size(); i++) {
      TestContainer testContainer = (TestContainer)testContainers.get(i);
      List tests = testContainer.getTestsWithId(testId);
      if (tests.size() == 0) { // test is missing from this container
        comparators.add(null);
      } else if (tests.size() == 1) {
        Test test = (Test)tests.get(0);
        ValueComparator comparator = new ValueComparator(i, test);
        comparators.add(comparator);
      } else { // multiple runs of this test are present
        // @todo lises move this check into ValueComparator, for future
        //             averaging, make ValueComparator accept a list of tests
        String s = "Not implemented yet: multiple tests in "
                 + testContainer.getTestContainerDir() + " with id=" + testId;
        throw new UnsupportedOperationException(s);
      }
    }
    // make each instance read its archives
    for (Iterator i = comparators.iterator(); i.hasNext();) {
      ValueComparator comparator = (ValueComparator)i.next();
      if (comparator != null) {
        comparator.readArchives();
      }
    }
    return comparators;
  }
TestContainer testContainer = (TestContainer)testContainers.get(i);
List tests = testContainer.getTestsWithId(testId);
if (tests.size() == 0) { // test is missing from this container
comparators.add(null);
} else if (tests.size() == 1) {
private static List buildValueComparators(String testId,
List testContainers) {
List comparators = new ArrayList();
for (int i = 0; i < testContainers.size(); i++) {
TestContainer testContainer = (TestContainer)testContainers.get(i);
List tests = testContainer.getTestsWithId(testId);
if (tests.size() == 0) { // test is missing from this container
comparators.add(null);
} else if (tests.size() == 1) {
Test test = (Test)tests.get(0);
ValueComparator comparator = new ValueComparator(i, test);
comparators.add(comparator);
} else { // multiple runs of this test are present
// @todo lises move this check into ValueComparator, for future
// averaging, make ValueComparator accept a list of tests
String s = "Not implemented yet: multiple tests in "
+ testContainer.getTestContainerDir() + " with id=" + testId;
private static List buildValueComparators(String testId,
List testContainers) {
List comparators = new ArrayList();
for (int i = 0; i < testContainers.size(); i++) {
TestContainer testContainer = (TestContainer)testContainers.get(i);
List tests = testContainer.getTestsWithId(testId);
if (tests.size() == 0) { // test is missing from this container
comparators.add(null);
} else if (tests.size() == 1) {
Test test = (Test)tests.get(0);
ValueComparator comparator = new ValueComparator(i, test);
comparators.add(comparator);
} else { // multiple runs of this test are present
// @todo lises move this check into ValueComparator, for future
// averaging, make ValueComparator accept a list of tests
String s = "Not implemented yet: multiple tests in "
+ testContainer.getTestContainerDir() + " with id=" + testId;
throw new UnsupportedOperationException(s);
}
}
// make each instance read its archives
for (Iterator i = comparators.iterator(); i.hasNext();) {
ValueComparator comparator = (ValueComparator)i.next();
if (comparator != null) {
comparator.readArchives();
}
}