Logo Search packages:      
Sourcecode: jmock2 version File versions  Download package

public<T> T org::jmock::integration::junit3::MockObjectTestCase::mock ( Class< T >  typeToMock,
String  name 
) [inline, package]

Create a mock object of type T with an explicit name.

Parameters:
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
Returns:
A new mock object of type

Definition at line 94 of file MockObjectTestCase.java.

References org::jmock::Mockery::mock().

                                                        {
        return context.mock(typeToMock, name);
    }


Generated by  Doxygen 1.6.0   Back to index