Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. To run the file TestClass.class from the command line, we have to type what?
  2. A.
    java TestClass
    B.
    javac TestClass
    C.
    java org.junit.runner.JUnitCore TestClass
    D.
    org.junit.runner.JUnitCore TestClass

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The test cases are executed using JUnitCore class which is referenced by "org.junit.runner.JUnitCore.


Be The First To Comment