1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5
6package org.mockito.internal.verification;
7
8import org.mockito.invocation.Invocation;
9
10import java.io.Serializable;
11import java.util.Collections;
12import java.util.List;
13
14public class SingleRegisteredInvocation implements RegisteredInvocations, Serializable {
15
16    private Invocation invocation;
17
18    public void add(Invocation invocation) {
19        this.invocation = invocation;
20    }
21
22    public void removeLast() {
23        invocation = null;
24    }
25
26    public List<Invocation> getAll() {
27        return Collections.emptyList();
28    }
29
30    public boolean isEmpty() {
31        return invocation == null;
32    }
33}
34