Create a mock object of type T with an explicit name.
|typeToMock ||The type to be mocked |
|name ||The name of the new mock object that is used to identify the mock object in error messages |
- A new mock object of type
Definition at line 94 of file MockObjectTestCase.java.
return context.mock(typeToMock, name);