org.mockito.internal.invocation.InvocationComparator 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) 2016 Mockito contributors
* This program is made available under the terms of the MIT License.
*/
package org.mockito.internal.invocation;
import java.util.Comparator;
import org.mockito.invocation.Invocation;
/**
* Compares invocations based on the sequence number
*/
public class InvocationComparator implements Comparator {
@Override
public int compare(Invocation o1, Invocation o2) {
return Integer.compare(o1.getSequenceNumber(), o2.getSequenceNumber());
}
}