org.mockito.internal.progress
Class VerificationModeImpl

java.lang.Object
  extended by org.mockito.internal.progress.VerificationModeImpl
All Implemented Interfaces:
VerificationMode

public class VerificationModeImpl
extends java.lang.Object
implements VerificationMode

Holds additional information regarding verification.

Implements marking interface which hides details from Mockito users.


Method Summary
static VerificationModeImpl atLeastOnce()
           
 boolean atLeastOnceMode()
           
 boolean exactNumberOfInvocationsMode()
           
 boolean explicitMode()
           
 java.util.List<? extends java.lang.Object> getMocksToBeVerifiedInOrder()
           
static VerificationModeImpl inOrder(java.lang.Integer wantedNumberOfInvocations, java.util.List<? extends java.lang.Object> mocksToBeVerifiedInOrder)
           
 boolean inOrderMode()
           
 boolean matchesActualCount(int actualCount)
           
 boolean missingMethodInOrderMode()
           
 boolean missingMethodMode()
           
 boolean neverWanted()
           
 boolean neverWantedButInvoked(int actualCount)
           
static VerificationModeImpl noMoreInteractions()
           
static VerificationModeImpl times(int wantedNumberOfInvocations)
           
 boolean tooLittleActualInvocations(int actualCount)
           
 boolean tooManyActualInvocations(int actualCount)
           
 java.lang.String toString()
           
 java.lang.Integer wantedCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

atLeastOnce

public static VerificationModeImpl atLeastOnce()

times

public static VerificationModeImpl times(int wantedNumberOfInvocations)

inOrder

public static VerificationModeImpl inOrder(java.lang.Integer wantedNumberOfInvocations,
                                           java.util.List<? extends java.lang.Object> mocksToBeVerifiedInOrder)

noMoreInteractions

public static VerificationModeImpl noMoreInteractions()

wantedCount

public java.lang.Integer wantedCount()

getMocksToBeVerifiedInOrder

public java.util.List<? extends java.lang.Object> getMocksToBeVerifiedInOrder()

atLeastOnceMode

public boolean atLeastOnceMode()

explicitMode

public boolean explicitMode()

inOrderMode

public boolean inOrderMode()

missingMethodMode

public boolean missingMethodMode()

missingMethodInOrderMode

public boolean missingMethodInOrderMode()

exactNumberOfInvocationsMode

public boolean exactNumberOfInvocationsMode()

matchesActualCount

public boolean matchesActualCount(int actualCount)

tooLittleActualInvocations

public boolean tooLittleActualInvocations(int actualCount)

tooManyActualInvocations

public boolean tooManyActualInvocations(int actualCount)

neverWanted

public boolean neverWanted()

neverWantedButInvoked

public boolean neverWantedButInvoked(int actualCount)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object