Parameterize JUnit Tests
Jacoberson opened this issue · 2 comments
Task Context
Codacy has some issues with the unit tests having more than 1 assert. Most of these errors can be resolved by parameterizing tests such as the test in HydrateBreakMessageDictionaryTest.java
Acceptance Criteria / Goals
Tests that have several assertions (specifically assertEquals) are parameterized
Additional Notes
Some tests such as shouldSetLastHydrateInstantAfterHydrateResetHasOccurred() in HydrateReminderPluginTest.java cannot be parameterized as they use assertFalse/assertTrue instead of assertEquals
Please refer to CONTRIBUTING.md for info on how to setup, build, run, and test this project. Feel free to ping @jmakhack in the comments below with any questions if needed. Also, join the Discord to meet and engage with other contributors!
@jmakhack I'd like to do this if you accept it.
@Jacoberson sounds good to me. Feel free to ignore some of the reported issues if it doesn't make sense to parameterize that particular test or to split it into multiple tests.