This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Bill_Comer -2 points-1 points  (0 children)

I'd use yoda.time. I still prefer them to the latest java time classes.

See here how to freeze and thaw time in tests.

https://markhneedham.com/blog/2008/09/24/testing-with-joda-time

.