private boolean checkRow(Cursor c,int colQuery,int colDisp1,int colDisp2,String matchDisplay1,String matchDisplay2){
  String query=c.getString(colQuery);
  String display1=c.getString(colDisp1);
  String display2=(colDisp2 >= 0) ? c.getString(colDisp2) : null;
  assertEquals(query,display1);
  boolean result=true;
  if (matchDisplay1 != null) {
    result=result && (display1 != null) && display1.startsWith(matchDisplay1);
  }
  if (matchDisplay2 != null) {
    result=result && (display2 != null) && display2.startsWith(matchDisplay2);
  }
  return result;
}

private boolean checkRow ( Cursor c , int colQuery , int colDisp1 , int colDisp2 , String matchDisplay1 , String matchDisplay2 ) { String query = c . getString ( colQuery ) ; String display1 = c . getString ( colDisp1 ) ; String display2 = ( colDisp2 >= 0 ) ? c . getString ( colDisp2 ) : null ; assertEquals ( query , display1 ) ; boolean result = true ; if ( matchDisplay1 != null ) { result = result && ( display1 != null ) && display1 . startsWith ( matchDisplay1 ) ; } if ( matchDisplay2 != null ) { result = result && ( display2 != null ) && display2 . startsWith ( matchDisplay2 ) ; } return result ; }
check a single row for equality with target strings .
