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

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

The newest version!
/*
 * Copyright (c) 2007 Mockito contributors
 * This program is made available under the terms of the MIT License.
 */

package org.mockito.internal.verification;

import org.mockito.invocation.Invocation;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

public class SingleRegisteredInvocation implements RegisteredInvocations, Serializable {

    private Invocation invocation;

    public void add(Invocation invocation) {
        this.invocation = invocation;
    }

    public void removeLast() {
        invocation = null;
    }

    public List getAll() {
        return Collections.emptyList();
    }

    public boolean isEmpty() {
        return invocation == null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy