Keeping JUnit Tests Clean
Writing unit tests is easy. Writing good unit tests is difficult. But what actually makes a good unit test? You may ask yourself this question when you start writing tests for your code. Or maybe you already have a bunch of tests, but they’re not as clean and maintainable as you’d like them to be. You surely found yourself in a situation where you had to change your code, but your tests were so messy that you had to rewrite them from scratch. ...