org.jmock.api
Interface MockObjectNamingScheme

All Known Implementing Classes:
CamelCaseNamingScheme, LastWordNamingScheme, RetroNamingScheme

public interface MockObjectNamingScheme

Creates names for mock objects that have not explicitly been given a name.

Author:
npryce

Method Summary
 String defaultNameFor(Class<?> typeToMock)
          Derive a name for a mock object from the name of the given type.
 

Method Detail

defaultNameFor

String defaultNameFor(Class<?> typeToMock)
Derive a name for a mock object from the name of the given type.

Parameters:
typeToMock - The type being mocked.
Returns:
The default name for a mock object of the given type.