1.

Which annotation must be used to define suite classes?(a) @RunWith(b) @SuiteClasses(c) @Suite(d) @SuiteClassI had been asked this question during an online exam.This question is from Running Parameterized Tests topic in section Exploring Core JUnit of JUnit

Answer»

Right answer is (B) @SuiteClasses

Explanation: The SuiteClasses annotation is USED to specify the CLASSES to be run when a class that is annotated with @RunWith(Suite.class) has been run.



Discussion

No Comment Found

Related InterviewSolutions