Skip to content

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

Closed

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).

Activity

  1. added
    enhancement
    blocked
    on Feb 23, 2022
  2. added this to the Improvement phase 1 milestone on Feb 23, 2022
  3. Zabuzard commented on Feb 23, 2022

    @Zabuzard
    MemberAuthor

    Naturally blocked by #373

  4. removed
    blocked
    on Feb 24, 2022
  5. Zabuzard commented on Feb 24, 2022

    @Zabuzard
    MemberAuthor

    unblocked, pr has been merged.

  6. self-assigned this
    on Mar 15, 2022
  7. github-actions commented on Apr 15, 2022

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.

  8. added
    inactivity-closed
    on Apr 15, 2022
  9. added
    valid
    and removed
    inactivity-closed
    on Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementpriority: normalvalid

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions