You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having setters in Enums is considered a bad practice and flagged by systems like PMD
There is no way to skip Setter checks on Enum at the moment
Specially when Enums are nested inside other pojos which are been tested for Setters
The text was updated successfully, but these errors were encountered:
sta-szek
changed the title
pojo-tester does not skip "Setter" check for enums
Skip testing setters for Enums
Oct 28, 2017
I agree, in the future we can skip testing setter for enums by default. For now you can workaround this in simple way method(EQUALS, HASH_CODE, GETTER, TO_STRING, CONSTRUCTOR) so I wont prioritize this issue.
But @niravmsh you are welcome to implement this now.
You can even think about including / excluding tests for methods e.g.:
Having setters in Enums is considered a bad practice and flagged by systems like PMD
There is no way to skip Setter checks on Enum at the moment
Specially when Enums are nested inside other pojos which are been tested for Setters
The text was updated successfully, but these errors were encountered: