blob: 07da74c3780392fbaeba1c78550085f493c4c9ea [file] [log] [blame]
/*
* 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<Invocation> getAll() {
return Collections.emptyList();
}
public boolean isEmpty() {
return invocation == null;
}
}