| package org.mockito.internal.verification; |
| |
| import org.mockito.internal.verification.api.VerificationData; |
| import org.mockito.verification.VerificationEvent; |
| import org.mockito.verification.VerificationMode; |
| |
| public class VerificationEventImpl implements VerificationEvent { |
| private final Object mock; |
| private final VerificationMode mode; |
| private final VerificationData data; |
| private final Throwable cause; |
| |
| |
| public VerificationEventImpl(Object mock, VerificationMode mode, VerificationData data, Throwable cause) { |
| this.mock = mock; |
| this.mode = mode; |
| this.data = data; |
| this.cause = cause; |
| } |
| |
| public Object getMock() { |
| return mock; |
| } |
| |
| public VerificationMode getMode() { |
| return mode; |
| } |
| |
| public VerificationData getData() { |
| return data; |
| } |
| |
| public Throwable getVerificationError() { |
| return cause; |
| } |
| } |