Discussion :: JUnit MCQs
- __________________ 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.
A.
createMock(Class toMock)
|
B.
createMock(MockType type, Class toMock)
|
C.
createMock(String name, Class toMock)
|
D.
createMock(String name, MockType type, Class toMock)
|
Answer : Option D
Explanation :
The name is passed as a parameter in the function definition.
Be The First To Comment