goog.testing.MockClassRecord |
namespace
: Object
The namespace in which the mocked class resides.
|
className
: string
The name of the class within the namespace.
|
originalClass
: Function
The original class implementation before it
was replaced by a proxy.
|
proxy
: Function
The proxy that replaced the original class.
|
![]()
Adds a new mock instance mapping. The mapping connects a set of function
arguments to a specific mock instance.
Arguments:
|
code » | |||
Finds the mock corresponding to a given argument set. Throws an error if
there is no appropriate match found.
Arguments:
Returns: goog.testing.StrictMock | goog.testing.LooseMock | null
The mock
corresponding to a given argument set.
|
code » | |||
A getter for this record's class name.
Returns: string
The name of the class referenced by this record.
|
code » | |||
A getter for this record's namespace.
Returns: Object
The namespace.
|
code » | |||
A getter for the original class.
Returns: Function
The original class implementation before mocking.
|
code » | |||
A getter for the proxy being used as a replacement for the original class.
Returns: Function
The proxy.
|
code » | |||
A getter for the static mock.
Returns: goog.testing.StrictMock | goog.testing.LooseMock | null
The static
mock associated with this record.
|
code » | |||
![]()
Resets this record by reverting all the mocked classes back to the original
implementation and clearing out the mock instance list.
|
code » | |||
![]()
A setter for the static mock.
Arguments:
|
code » |
![]()
The name of the class within the provided namespace.
|
Code » | |
![]()
A mocks that will be constructed by their argument list. The entries are
objects with the format {'args': args, 'mock': mock}.
|
Code » | |
![]()
A standard closure namespace (e.g. goog.foo.bar) that contains the mock
class referenced by this MockClassRecord.
|
Code » | |
![]()
The original class implementation.
|
Code » | |
![]()
The proxy being used as a replacement for the original class.
|
Code » | |
A mock associated with the static functions for a given class.
|
Code » |