org.mockito.internal.verification.VerificationEventImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mockito-core Show documentation
Show all versions of mockito-core Show documentation
Mockito mock objects library core API and implementation
/*
* Copyright (c) 2017 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
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;
}
@Override
public Object getMock() {
return mock;
}
@Override
public VerificationMode getMode() {
return mode;
}
@Override
public VerificationData getData() {
return data;
}
@Override
public Throwable getVerificationError() {
return cause;
}
}