public void assertEquals(java.util.Date expected,java.util.Date actual){
  if (expected != actual && !expected.equals(actual)) {
    DateFormat df=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
    SimpleTimeZone gmt=new SimpleTimeZone(0,"Z");
    df.setTimeZone(gmt);
    fail("Expected: " + df.format(expected) + " actual: "+ df.format(actual));
  }
}

public void assertEquals ( java . util . Date expected , java . util . Date actual ) { if ( expected != actual && ! expected . equals ( actual ) ) { DateFormat df = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss.SSS" ) ; SimpleTimeZone gmt = new SimpleTimeZone ( 0 , "Z" ) ; df . setTimeZone ( gmt ) ; fail ( "Expected: " + df . format ( expected ) + " actual: " + df . format ( actual ) ) ; } }
check if two values are equal , and if not throw an exception .
