com.atlassian.bamboo.mockito
Class MockitoUtils

java.lang.Object
  extended by com.atlassian.bamboo.mockito.MockitoUtils

public final class MockitoUtils
extends Object


Method Summary
static
<T extends Comparable<T>>
void
addComparator(Comparable<T> mock, Comparator<T> comparator)
          Add the supplied comparator to the mocked object.
static
<T extends Comparable<T>>
Comparator<T>
hashCodeComparator()
          Creates a comparator that compares identity hashcodes of the supplied objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hashCodeComparator

public static <T extends Comparable<T>> Comparator<T> hashCodeComparator()
Creates a comparator that compares identity hashcodes of the supplied objects.


addComparator

public static <T extends Comparable<T>> void addComparator(Comparable<T> mock,
                                                           Comparator<T> comparator)
Add the supplied comparator to the mocked object.



Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.