MockObjectNamingScheme
public class LastWordNamingScheme extends Object implements MockObjectNamingScheme
Modifier and Type | Field | Description |
---|---|---|
static MockObjectNamingScheme |
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
String |
defaultNameFor(Class<?> typeToMock) |
Derive a name for a mock object from the name of the given type.
|
public static MockObjectNamingScheme INSTANCE
public String defaultNameFor(Class<?> typeToMock)
MockObjectNamingScheme
defaultNameFor
in interface MockObjectNamingScheme
typeToMock
- The type being mocked.Copyright © 2003–2018 jMock. All rights reserved.