All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mockito.internal.verification.VerificationEventImpl Maven / Gradle / Ivy

There is a newer version: 5.12.0
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy