Skip to content

Testing: Cleanup Test resets #271

@kmanning

Description

@kmanning
  • This library unfortunately has a lot of static state
  • You'll find a number of classes that have a reset() method, so that as we run unit tests, state modifications from one test don't unintentionally impact another test
  • This is really error prone, is difficult to detect when missed, and is just difficult to maintain. This feels like an anti-pattern.
  • Find a better solution for this.
  • Part of the solution is likely implementing a JUnitRule instead of @Before/@after reset() methods

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttestingImprove the test suite(s)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions