Skip to content

Unit tests for /remind (and clock mocking) #396

@Zabuzard

Description

@Zabuzard

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 write Instant.now(clock). And then you need to provide a clock at an accessible place that you can mock (similar to Config for example).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpriority: normalvalidThis issue/PR is validated and ready to be picked. This auto adds items to TJ project board.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions