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

void org::jmock::integration::junit3::MockObjectTestCase::setDefaultResultForType ( Class<?>  type,
Object  result 
) [inline]

Sets the result returned for the given type when no return value has been explicitly specified in the expectation.

type The type for which to return result.
result The value to return when a method of return type type is invoked for which an explicit return value has has not been specified.

Definition at line 48 of file MockObjectTestCase.java.

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

        context.setDefaultResultForType(type, result);

Generated by  Doxygen 1.6.0   Back to index