1.

Which annotation is used to list all the classes in a suite?(a) @RunWith(b) @SuiteClasses(c) @Classses(d) @SuiteClassThe question was asked in semester exam.The question is from Composing Tests with a Suite topic in portion Exploring Core JUnit of JUnit

Answer»

Right option is (B) @SuiteClasses

For explanation: The SuiteClasses ANNOTATION specifies the CLASSES to be RUN when a class annotated with @RunWith(Suite.class) is run. The formal definition of the annotation is “Annotation TYPE Suite.SuiteClasses”.



Discussion

No Comment Found

Related InterviewSolutions