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) |
static org.mockito.stubbing.Answer<String> |
returnsReversedString() |
public static <T extends Comparable<T>> Comparator<T> hashCodeComparator()
public static <T extends Comparable<T>> void addComparator(Comparable<T> mock, Comparator<T> comparator)
@NotNull public static org.mockito.stubbing.Answer<Void> nonReturningAnswer(@NotNull Consumer<org.mockito.invocation.InvocationOnMock> answer)
public static org.mockito.stubbing.Answer<String> returnsReversedString()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.