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;
  }
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) {
        comparators.add(null);
      } else if (tests.size() == 1) {
        Test test = (Test)tests.get(0);
        ValueComparator comparator = new ValueComparator(i, test);
        comparators.add(comparator);
      } else {
       
       
        String s = "Not implemented yet: multiple tests in "
                 + testContainer.getTestContainerDir() + " with id=" + testId;
        throw new UnsupportedOperationException(s);
      }
    }
   
    for (Iterator i = comparators.iterator(); i.hasNext();) {
      ValueComparator comparator = (ValueComparator)i.next();
      if (comparator != null) {
        comparator.readArchives();
      }
    }
    return comparators;
  }
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) { comparators.add(null); } else if (tests.size() == 1) { test test = (test)tests.get(0); valuecomparator comparator = new valuecomparator(i, test); comparators.add(comparator); } else { string s = "not implemented yet: multiple tests in " + testcontainer.gettestcontainerdir() + " with id=" + testid; throw new unsupportedoperationexception(s); } } for (iterator i = comparators.iterator(); i.hasnext();) { valuecomparator comparator = (valuecomparator)i.next(); if (comparator != null) { comparator.readarchives(); } } return comparators; }