search

goog.testing.Mock

Provided By
All Implemented Interfaces
All Known Direct Subclasses

The base class for a mock object.

new Mock( objectToMock, opt_mockStaticMethods, opt_createProxy )

Parameters
objectToMock(Object|null)

The object that should be mocked, or the constructor of an object to mock.

opt_mockStaticMethodsboolean=

An optional argument denoting that a mock should be constructed from the static functions of a class.

opt_createProxyboolean=

An optional argument denoting that a proxy for the target mock should be created.

Instance Methods

Instance Properties

Static Functions

Static Properties