1.

What applies the same timeout to every test method of a class?(a) @Timeout(b) @Expected(c) Timeout Rule(d) Not possible to apply same timeoutI got this question by my college professor while I was bunking the class.Enquiry is from Timeout Testing in portion Mastering JUnit of JUnit

Answer»

The correct OPTION is (c) TIMEOUT Rule

To explain I WOULD SAY: The timeout can be specified as a rule so that it is applied to every method.



Discussion

No Comment Found

Related InterviewSolutions