예제 #1
0
 /**
  * Construct an ApexMocks instance.
  */
 public fflib_ApexMocks()
 {
     Verifying = false;
     this.methodCountRecorder                = new fflib_MethodCountRecorder();
     this.verificationMode                   = new fflib_VerificationMode();
     this.methodVerifier                     = new fflib_AnyOrder();
     this.methodReturnValueRecorder          = new fflib_MethodReturnValueRecorder();
     this.methodReturnValueRecorder.Stubbing = false;
 }
예제 #2
0
 /**
  * Sets the fflib_VerificationMode object.
  * To internal use only.
  * Used to pass the verification mode that has been set in the  verify of the fflib_InOrder class.
  * @return The fflib_VerificationMode object instance with the proper settings.
  */
 public void setOrderedVerifier(fflib_InOrder verifyOrderingMode)
 {
     this.methodVerifier = verifyOrderingMode;
 }
예제 #3
0
 /**
  * Verfiy a method was called on a mock object.
  * @param mockInvocation The invocation on the mock containing information about the method and the arguments.
  */
 public void verifyMethodCall(fflib_InvocationOnMock mockInvocation)
 {
     this.methodVerifier.verifyMethodCall(mockInvocation, verificationMode);
     this.methodVerifier = new fflib_AnyOrder();
     Verifying           = false;
 }