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