Skip to content

Mockito#reset Condescending Documentation #3046

@Blafasel3

Description

@Blafasel3

Hello,

I just realised that the method Mockito.reset() existed at all. The documentation in the most recent version states:

Smart Mockito users hardly use this feature because they know it could be a sign of poor tests.

At the core, I totally agree, this shouldn't be necessary. Nevertheless, the first sentence of the comment feels rather rude / condescending. I suggest a rephrase to something like

Using this method could be a sign of poor tests. <rest of the doc here>

Would help with that.

See the following link: https://github.com/mockito/mockito/blob/main/src/main/java/org/mockito/Mockito.java#L2581

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions