com.atlassian.cache
Class StatisticMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<com.atlassian.util.concurrent.Supplier<Long>>
      extended by com.atlassian.cache.StatisticMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<com.atlassian.util.concurrent.Supplier<Long>>, org.hamcrest.SelfDescribing

public class StatisticMatcher
extends org.hamcrest.BaseMatcher<com.atlassian.util.concurrent.Supplier<Long>>

Hamcrest matcher for statistics that recognizes the fact that they are optional.

Since:
v2.4.0

Method Summary
 void describeTo(org.hamcrest.Description description)
           
 boolean matches(Object o)
           
static StatisticMatcher stat(long expectedValue)
           
 
Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

stat

public static StatisticMatcher stat(long expectedValue)

matches

public boolean matches(Object o)

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2015 Atlassian. All rights reserved.