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 made
I have been asked this question in an interview.
My enquiry is from Running Parameterized Tests in portion Exploring Core JUnit of JUnit