in test case, need test time sensitive method, in method we're using java 8 class localdate, not joda.
what can change time, when i'm running test
in code, replace localdate.now() localdate.now(clock);.
you can pass clock.systemdefaultzone() production , a fixed clock testing.
Comments
Post a Comment