I have a JUnit test that fails because the milliseconds are different. In this case I don\'t care about the milliseconds. How can I change the precision of the assert to i
i cast the objects to java.util.Date and compare
assertEquals((Date)timestamp1,(Date)timestamp2);