public void threadAssertEquals(Object x,Object y){
  if (x != y && (x == null || !x.equals(y))) {
    threadFailed=true;
    assertEquals(x,y);
  }
}

public void threadAssertEquals ( Object x , Object y ) { if ( x != y && ( x == null || ! x . equals ( y ) ) ) { threadFailed = true ; assertEquals ( x , y ) ; } }
if arguments not equal , set status to indicate current testcase should fail
