Skip to content

Conversation

@kmanning
Copy link
Collaborator

@kmanning kmanning commented Feb 5, 2021

  • Issue Testing: Cleanup Test resets #271
  • If you have global state that needs to be modified as part of your test, you need to clean that up, or it may affect future tests
  • Let's create a simple and consistent way to do so
    • For your class that has global state, create a static reset method to do so, and implement the Resettable interface.
    • For your test, use the ResetStaticStateExtension - this will automatically run reset on all Resettable classes with a @beforeeach and @AfterEach.

@kmanning kmanning linked an issue Feb 9, 2021 that may be closed by this pull request
@kmanning kmanning added this to the v5.15 milestone Feb 9, 2021
@kmanning kmanning merged commit 81f4a4b into manheim:master Feb 9, 2021
@kmanning kmanning deleted the issue_271 branch April 20, 2021 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Testing: Cleanup Test resets

2 participants