public static void assertEquals(String message,List<IOObject> expected,List<IOObject> actual){
  assertSize(expected,actual);
  Iterator<IOObject> expectedIter=expected.iterator();
  Iterator<IOObject> actualIter=actual.iterator();
  int objectIndex=1;
  while (expectedIter.hasNext() && actualIter.hasNext()) {
    IOObject expectedIOO=expectedIter.next();
    IOObject actualIOO=actualIter.next();
    String subMessage=message + " IOObject \"" + actualIOO.getSource()+ "\" at position "+ objectIndex+ " does not match the expected value ";
    assertEquals(subMessage,expectedIOO,actualIOO);
    objectIndex++;
  }
}

public static void assertEquals ( String message , List < IOObject > expected , List < IOObject > actual ) { assertSize ( expected , actual ) ; Iterator < IOObject > expectedIter = expected . iterator ( ) ; Iterator < IOObject > actualIter = actual . iterator ( ) ; int objectIndex = 1 ; while ( expectedIter . hasNext ( ) && actualIter . hasNext ( ) ) { IOObject expectedIOO = expectedIter . next ( ) ; IOObject actualIOO = actualIter . next ( ) ; String subMessage = message + " IOObject \"" + actualIOO . getSource ( ) + "\" at position " + objectIndex + " does not match the expected value " ; assertEquals ( subMessage , expectedIOO , actualIOO ) ; objectIndex ++ ; } }
tests if both list of ioobjects are equal .
