InterviewSolution
| 1. |
The Methods Get () And Set () Should Be Tested For Which Conditions? |
|
Answer» Unit tests PERFORMED on java code should be designed to target areas that might BREAK. Since the set() and get() METHODS on simple DATA types are unlikely to break, there is no need to test them explicitly. On the other hand, set() and get() methods on complex data types are vulnerable to break. So they should be TESTED. Unit tests performed on java code should be designed to target areas that might break. Since the set() and get() methods on simple data types are unlikely to break, there is no need to test them explicitly. On the other hand, set() and get() methods on complex data types are vulnerable to break. So they should be tested. |
|