search

goog.testing.StrictMock

Provided By
Extends
All Implemented Interfaces

This is a mock that verifies that methods are called in the order that they are specified during the recording phase. Since it verifies order, it follows 'fail fast' semantics. If it detects a deviation from the expectations, it will throw an exception and not wait for verify to be called.

new StrictMock( 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