JUnit / Junit Interview questions II
Should we create test cases for getters and setters of a bean?
Not required. most of the getters and setters are less like to break. However we must consider adding test cases of getters/setters involving complex data types or special logic.
More Related questions...