com.atlassian.jira.easymock
Class MapKeyValueMatcher<K,V>

java.lang.Object
  extended by com.atlassian.jira.easymock.MapKeyValueMatcher<K,V>
Type Parameters:
K - key type
V - value type
All Implemented Interfaces:
org.easymock.IArgumentMatcher

public class MapKeyValueMatcher<K,V>
extends Object
implements org.easymock.IArgumentMatcher

Matches maps containing given keys and values.


Constructor Summary
MapKeyValueMatcher(List<Pair<K,V>> thingsToMatch)
           
MapKeyValueMatcher(Pair<K,V>... thingsToMatch)
           
 
Method Summary
 void appendTo(StringBuffer buffer)
           
static
<L,M> MapKeyValueMatcher<L,M>
forPair(L key, M value)
           
static
<L,M> MapKeyValueMatcher<L,M>
forPairs(L key1, M value1, L key2, M value2)
           
 boolean matches(Object argument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapKeyValueMatcher

public MapKeyValueMatcher(List<Pair<K,V>> thingsToMatch)

MapKeyValueMatcher

public MapKeyValueMatcher(Pair<K,V>... thingsToMatch)
Method Detail

forPair

public static <L,M> MapKeyValueMatcher<L,M> forPair(L key,
                                                    M value)

forPairs

public static <L,M> MapKeyValueMatcher<L,M> forPairs(L key1,
                                                     M value1,
                                                     L key2,
                                                     M value2)

matches

public boolean matches(Object argument)
Specified by:
matches in interface org.easymock.IArgumentMatcher

appendTo

public void appendTo(StringBuffer buffer)
Specified by:
appendTo in interface org.easymock.IArgumentMatcher


Copyright © 2002-2014 Atlassian. All Rights Reserved.