Unit tests for /remind (and clock mocking) #396
Labels
enhancement
New feature or request
priority: normal
valid
This issue/PR is validated and ready to be picked. This auto adds items to TJ project board.
Milestone
Overview
The
/remind
command should be covered by unit tests.This requires clock mocking though, which we should introduce with this as well.
Hints
Fortunately, Java is well equipped for clock mocking. Its just that it requires a change on all time usages in the whole code base. Like, instead of
Instant.now()
, you would writeInstant.now(clock)
. And then you need to provide a clock at an accessible place that you can mock (similar toConfig
for example).The text was updated successfully, but these errors were encountered: