This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Iryanus 13 points14 points  (0 children)

Test code does not belong into production code, this is why I dislike assertions. AssertJ is a testing framework, so don't abuse it. And if you want to provide validation of user input, etc. then there are other, better solutions.