Class MapWithSizeMatcher<K,V>

java.lang.Object
org.hamcrest.BaseMatcher<T>
org.hamcrest.TypeSafeDiagnosingMatcher<T>
org.hamcrest.FeatureMatcher<Map<? extends K,? extends V>,Integer>
com.atlassian.bamboo.utils.matchers.MapWithSizeMatcher<K,V>
All Implemented Interfaces:
org.hamcrest.Matcher<Map<? extends K,? extends V>>, org.hamcrest.SelfDescribing

public class MapWithSizeMatcher<K,V> extends org.hamcrest.FeatureMatcher<Map<? extends K,? extends V>,Integer>
Copied from Hamcrest sources, as this matcher is not present in Hamcrest 1.3 and 1.4 has not been released yet (also, 1.3 is the version defined in Bamboo parent pom in Atlassian platform).
  • Constructor Summary

    Constructors
    Constructor
    Description
    MapWithSizeMatcher(org.hamcrest.Matcher<? super Integer> sizeMatcher)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Integer
    featureValueOf(Map<? extends K,? extends V> actual)
     

    Methods inherited from class org.hamcrest.FeatureMatcher

    describeTo, matchesSafely

    Methods inherited from class org.hamcrest.TypeSafeDiagnosingMatcher

    describeMismatch, matches

    Methods inherited from class org.hamcrest.BaseMatcher

    _dont_implement_Matcher___instead_extend_BaseMatcher_, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MapWithSizeMatcher

      public MapWithSizeMatcher(org.hamcrest.Matcher<? super Integer> sizeMatcher)
  • Method Details

    • featureValueOf

      protected Integer featureValueOf(Map<? extends K,? extends V> actual)
      Specified by:
      featureValueOf in class org.hamcrest.FeatureMatcher<Map<? extends K,? extends V>,Integer>