public static void assertEqualsAnyOrder(EventBean[][] expected,EventBean[][] actual){
  if (compareArraySize(expected,actual)) {
    return;
  }
  int numMatches=0;
  boolean[] foundReceived=new boolean[actual.length];
  for (  EventBean[] expectedObject : expected) {
    boolean found=false;
    for (int i=0; i < actual.length; i++) {
      if (foundReceived[i]) {
        continue;
      }
      boolean match=compareEqualsExactOrder(actual[i],expectedObject);
      if (match) {
        found=true;
        numMatches++;
        foundReceived[i]=true;
        break;
      }
    }
    if (!found) {
      log.error(".assertEqualsAnyOrder Not found in received results is expected=" + Arrays.toString(expectedObject));
      log.error(".assertEqualsAnyOrder received=" + Arrays.toString(actual));
    }
    ScopeTestHelper.assertTrue(found);
  }
  ScopeTestHelper.assertEquals(numMatches,expected.length);
}

public static void assertEqualsAnyOrder ( EventBean [ ] [ ] expected , EventBean [ ] [ ] actual ) { if ( compareArraySize ( expected , actual ) ) { return ; } int numMatches = 0 ; boolean [ ] foundReceived = new boolean [ actual . length ] ; for ( EventBean [ ] expectedObject : expected ) { boolean found = false ; for ( int i = 0 ; i < actual . length ; i ++ ) { if ( foundReceived [ i ] ) { continue ; } boolean match = compareEqualsExactOrder ( actual [ i ] , expectedObject ) ; if ( match ) { found = true ; numMatches ++ ; foundReceived [ i ] = true ; break ; } } if ( ! found ) { log . error ( ".assertEqualsAnyOrder Not found in received results is expected=" + Arrays . toString ( expectedObject ) ) ; log . error ( ".assertEqualsAnyOrder received=" + Arrays . toString ( actual ) ) ; } ScopeTestHelper . assertTrue ( found ) ; } ScopeTestHelper . assertEquals ( numMatches , expected . length ) ; }
compare two 2 - dimensional event arrays .
