1.

What are Parameterised tests used for in JUnit?(a) Run a test many times with different sets of parameters(b) Run a test with no parameters(c) Run a test with only String parameters(d) Run a test once with fixed set of parametersThe question was asked during an internship interview.Question is from Running Parameterized Tests topic in section Exploring Core JUnit of JUnit

Answer»

Right OPTION is (a) Run a TEST many times with different sets of parameters

The explanation is: The PARAMETERIZED test runner allows to run a test many times with different sets of parameters.



Discussion

No Comment Found

Related InterviewSolutions