1.

The test class must carry the @RunWith annotation with the ______ class as its argument.(a) Default(b) Parameterised(c) Super(d) InheritedI got this question in an internship interview.This is a very interesting question from Running Parameterized Tests topic in portion Exploring Core JUnit of JUnit

Answer»

The CORRECT CHOICE is (b) Parameterised

To explain I WOULD say: “Parameterised.class” should be the argument. The full syntax is @RunWith(value=Parameterized.class).



Discussion

No Comment Found

Related InterviewSolutions