goog.labs.mock.MockManager_ | |
goog.labs.mock.MockObjectManager_ | goog.labs.mock.MockManager_ |
goog.labs.mock.MockSpyManager_ | goog.labs.mock.MockObjectManager_ |
obj
: !Object
The object to be spied on.
|
![]()
Adds a binding for the method name and arguments to be stubbed.
|
code » | |||
![]()
Looks up the list of stubs defined on the mock object and executes the
function associated with that stub.
Arguments:
Returns: *
Value returned by the stub function.
|
code » | |||
Returns a stub, if defined, for the method name and arguments passed in.
|
code » | |||
Returns a stub, if defined, for the method name and arguments passed in as
parameters.
|
code » | |||
Returns the mock object. This should have a stubbed method for each method
on the object being mocked.
|
code » | |||
Handles the first step in creating a stub, returning a stub-binder that
is later used to bind a stub for a method.
Arguments:
Returns: !goog.labs.mock.StubBinder_
The stub binder.
|
code » | |||
![]()
Records a call to 'methodName' with arguments 'args'.
|
code » | |||
![]()
Verify invocation of a method with specific arguments.
Arguments:
|
code » |
![]()
No description.
|
Code » |
![]()
Holds a reference to the binder used to define stubs.
|
Code » | |
![]()
Record method calls with no stub definitions.
|
Code » | |
![]()
Holds the stub bindings established so far.
|
Code » | |
![]()
Proxies the methods for the mocked object or class to execute the stubs.
|
Code » | |
![]()
A reference to the object or function being mocked.
|
Code » |
![]()
No description.
|
Code » |