JUnit TestSuite is a
-
a.) Container class, which used to group multiple test cases into a collection and run them together.
-
b.) defines test fixture, which contains all the test methods.
-
c.) interface, which contains the declaration of all the methods, needs to be implemented by Testcases.
-
d.) None of the above
Reveal answer
Fill a bubble to check yourself
A
Correct answer
Explanation
A JUnit TestSuite is a container class (Option A) used to group multiple test cases into a collection and run them together. It does NOT define test fixtures (Option B) - that's the purpose of @Before/@BeforeAll methods. It is NOT an interface (Option C) - TestSuite is a concrete class. Option D is incorrect because Option A accurately describes TestSuite functionality.