Project Outline
Class Index | File Index
«
JsMockito - Mockito port to JavaScript

Namespace JsMockito.Verifiers

Defined in: jsmockito.js.

Method Summary
never() Test that a invocation never occurred.
zeroInteractions() Test that no interaction were made on the mock.
noMoreInteractions() Test that no further interactions remain unverified on the mock.
times(wanted) Test that an invocation occurred a specific number of times.
once() Test that an invocation occurred exactly once.
Method Detail
JsMockito.Verifiers.never()
Test that a invocation never occurred. For example:
verify(mock, never()).method();

              
See:
JsMockito.Verifiers.times(0)
JsMockito.Verifiers.zeroInteractions()
Test that no interaction were made on the mock. For example:
verify(mock, zeroInteractions());

              
See:
JsMockito.verifyZeroInteractions()
JsMockito.Verifiers.noMoreInteractions()
Test that no further interactions remain unverified on the mock. For example:
verify(mock, noMoreInteractions());

              
See:
JsMockito.verifyNoMoreInteractions()
JsMockito.Verifiers.times(wanted)
Test that an invocation occurred a specific number of times. For example:
verify(mock, times(2)).method();

              
Parameters:
wanted The number of desired invocations
JsMockito.Verifiers.once()
Test that an invocation occurred exactly once. For example:
verify(mock, once()).method();
This is the default verifier.

              
See:
JsMockito.Verifiers.times(1)
Documentation generated by JsDoc Toolkit 2.1.0 on Tue Aug 16 2011 16:26:01 GMT+0200 (CEST)