1.

For a Suite class, the @RunWith annotation has the value of which class?(a) org.junit.runners.class(b) org.junit.Suite.class(c) org.runners.Suite.class(d) org.junit.runners.Suite.classThis question was addressed to me in homework.My question is from Composing Tests with a Suite in portion Exploring Core JUnit of JUnit

Answer» RIGHT option is (d) org.junit.runners.SUITE.class

Best EXPLANATION: “org.junit.runners.Suite.class” CONTAINS the definition for the Suite class and a the declaration is @RunWith(value=org.junit.runners.Suite.class).


Discussion

No Comment Found

Related InterviewSolutions