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

org::jmock::lib::CamelCaseNamingScheme Class Reference

Inheritance diagram for org::jmock::lib::CamelCaseNamingScheme:

org::jmock::api::MockObjectNamingScheme

List of all members.


Detailed Description

A naming scheme in which the implicit name for a mock object is the mocked type's name with the first character in lower case. E.g. A mock object of type HelloWorld would be named "helloWorld". Initial acronyms are completely lowercased. For example, the type HTTPClient would be named httpClient.

This is the naming scheme used by default.

Author:
npryce

Definition at line 16 of file CamelCaseNamingScheme.java.


Public Member Functions

String defaultNameFor (Class<?> typeToMock)

Static Public Attributes

static final CamelCaseNamingScheme INSTANCE = new CamelCaseNamingScheme()

Private Member Functions

int indexOfFirstLowerCaseLetter (String simpleName)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index