public final class

MapMatchers

extends Object
java.lang.Object
   ↳ com.atlassian.jira.matchers.MapMatchers

Class Overview

Matchers for java.util.Maps.

Summary

Public Methods
static <K, V> Matcher<Map<K, V>> isMapOf(K key1, V value1, K key2, V value2)
Guava factory style map matcher for a map containing exactly 2 entries matching the arguments.
static <K, V> Matcher<Map<K, V>> isSingletonMap(K expectedKey, V expectedValue)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Matcher<Map<K, V>> isMapOf (K key1, V value1, K key2, V value2)

Guava factory style map matcher for a map containing exactly 2 entries matching the arguments.

Parameters
key1 key of the first entry
value1 value of the first entry
key2 key of the second entry
value2 key of the second entry
Returns
  • matcher for the map equal to a map of provided keys and values

public static Matcher<Map<K, V>> isSingletonMap (K expectedKey, V expectedValue)