Home / CSE MCQs / JUnit MCQs :: Discussion

Discussion :: JUnit MCQs

  1. __________________ creates a mock object, of the requested type and name which are passed, which also has implementations of the given interface or extends the given class.
  2. A.
    createMock(Class toMock)
    B.
    createMock(MockType type, Class toMock)
    C.
    createMock(String name, Class toMock)
    D.
    createMock(String name, MockType type, Class toMock)

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The name is passed as a parameter in the function definition.


Be The First To Comment