I work on a project where we have to create unit tests for all of our simple beans (POJOs). Is there any point to creating a unit test for POJOs if all they consist of is gette
I once spent two hours because of something like this:
int getX() { return (x); } int getY() { return (x); // oops }
Since it takes almost no time to write the tests for simple getters, I do it now out of habit.