public void assertEquals(String assertID,Collection expected,NodeList actual){
  Collection actualList=new ArrayList();
  int actualLen=actual.getLength();
  for (int i=0; i < actualLen; i++) {
    actualList.add(actual.item(i));
  }
  framework.assertEquals(this,assertID,expected,actualList);
}

public void assertEquals ( String assertID , Collection expected , NodeList actual ) { Collection actualList = new ArrayList ( ) ; int actualLen = actual . getLength ( ) ; for ( int i = 0 ; i < actualLen ; i ++ ) { actualList . add ( actual . item ( i ) ) ; } framework . assertEquals ( this , assertID , expected , actualList ) ; }
asserts that each entry in actual exactly matches with an entry in expected . order is not significant .
