InterviewSolution
Saved Bookmarks
| 1. |
What are fixtures in JUnit?(a) Objects that specify when to run a test(b) Fixed state of a set of objects used as a baseline for running tests(c) Bundle of few test cases run together(d) Date objectsThis question was addressed to me in an international level competition.Origin of the question is Exploring Core JUnit in portion Exploring Core JUnit of JUnit |
|
Answer» CORRECT choice is (b) Fixed state of a set of objects used as a baseline for running tests For explanation I would say: Tests need to RUN against the BACKDROP of set of PREDEFINED or known objects. This set of objects is called a test FIXTURE. |
|