1.

To start a test case as JUnit 3.8 test case which runner is required?(a) org.junit.runners.Junit4(b) org.junit.runners.Parameterized(c) org.junit.internal.runners.Junit38ClassRunner(d) org.junit.internal.runners.Junit4The question was asked in an interview for internship.This key question is from JUnit Test Runners in section Exploring Core JUnit of JUnit

Answer»

The correct choice is (C) org.junit.internal.runners.Junit38ClassRunner

The explanation: This runner is INCLUDED in the current RELEASE of JUnit only for BACKWARD compatibility. It will start the test CASE as a JUnit 3.8 test case.



Discussion

No Comment Found

Related InterviewSolutions