public final class MockitoUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<T>> |
addComparator(Comparable<T> mock,
Comparator<T> comparator)
Add the supplied comparator to the mocked object.
|
static <T extends Comparable<T>> |
hashCodeComparator()
Creates a comparator that compares identity hashcodes of the supplied objects.
|
static org.mockito.stubbing.Answer<Void> |
nonReturningAnswer(Consumer<org.mockito.invocation.InvocationOnMock> answer) |
public static <T extends Comparable<T>> Comparator<T> hashCodeComparator()
public static <T extends Comparable<T>> void addComparator(Comparable<T> mock, Comparator<T> comparator)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.