Mocking ZonedDateTime Java8

后端 未结 0 1170
陌清茗
陌清茗 2020-12-22 16:19

I have a model constructor that generates a timestamp as this.timestamp = null == timestamp ? ZonedDateTime.now().toInstant().toEpochMilli() : timestamp;

相关标签:
回答
  • 消灭零回复
提交回复
热议问题