com.atlassian.jira.easymock
Class MapKeyValueMatcher<K,V>
java.lang.Object
com.atlassian.jira.easymock.MapKeyValueMatcher<K,V>
- Type Parameters:
K
- key typeV
- 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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapKeyValueMatcher
public MapKeyValueMatcher(List<Pair<K,V>> thingsToMatch)
MapKeyValueMatcher
public MapKeyValueMatcher(Pair<K,V>... thingsToMatch)
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.