1.

What does the getRunCount() method of the Result return?(a) String denoting the time of execution(b) Integer denoting the time of execution(c) int denoting the number of tests run(d) int denoting the number of failed testsThe question was asked in an online quiz.My question comes from JUnit Test Runners in section Exploring Core JUnit of JUnit

Answer»

Correct CHOICE is (c) int DENOTING the number of tests run

The best explanation: getRunCount() RETURNS the number of tests run. GetRuntime() returns the EXECUTION TIME in milliseconds.



Discussion

No Comment Found

Related InterviewSolutions