citerus / dddsample-core

This is the new home of the original DDD Sample app (previously hosted at sf.net)..
MIT License
4.97k stars 1.47k forks source link

Stabilizes CarrierMovementTest#testSameValueAsEqualsHashCode #34

Closed DanilSuits closed 5 years ago

DanilSuits commented 6 years ago

The default constructor of java.util.Date depends on the system clock. If the clock should happen to tick while the CarrierMovements in this test are initialized, two movements we expect to be the same will be off by a millisecond.