1.

Custom JUnit rules can be created using ___________(a) TestRule Interface(b) CreateRule Interface(c) RuleCreate Interface(d) RuleInitialize InterfaceThe question was asked during a job interview.My doubt stems from Testing Exception Handling topic in chapter Mastering JUnit of JUnit

Answer»

The correct answer is (a) TestRule Interface

Best explanation: JUNIT PROVIDE the TestRule Interface which HELPS define CUSTOM JUnit Rules.



Discussion

No Comment Found

Related InterviewSolutions