InterviewSolution
Saved Bookmarks
| 1. |
How can a method be made to run before the execution of every test case?(a) Annotate the method with @Before(b) Prefix the method name with startfirst(c) Annotate the method with a @BeforeClass(d) Such a method cannot be madeI have been asked this question in an interview.My enquiry is from Running Parameterized Tests in portion Exploring Core JUnit of JUnit |
|
Answer» Correct OPTION is (a) Annotate the method with @Before |
|