org.mutabilitydetector.unittesting.matchers.reasons
Class WithAllowedReasonsMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<AnalysisResult>
      extended by org.mutabilitydetector.unittesting.matchers.reasons.WithAllowedReasonsMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<AnalysisResult>, org.hamcrest.SelfDescribing

public final class WithAllowedReasonsMatcher
extends org.hamcrest.BaseMatcher<AnalysisResult>


Method Summary
 void describeMismatch(Object item, org.hamcrest.Description description)
           
 void describeTo(org.hamcrest.Description description)
           
 boolean matches(Object item)
           
static WithAllowedReasonsMatcher withAllowedReasons(org.hamcrest.Matcher<AnalysisResult> areImmutable, Iterable<org.hamcrest.Matcher<MutableReasonDetail>> allowing)
           
static WithAllowedReasonsMatcher withNoAllowedReasons(org.hamcrest.Matcher<AnalysisResult> areImmutable)
           
 
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
 

Method Detail

withAllowedReasons

public static WithAllowedReasonsMatcher withAllowedReasons(org.hamcrest.Matcher<AnalysisResult> areImmutable,
                                                           Iterable<org.hamcrest.Matcher<MutableReasonDetail>> allowing)

withNoAllowedReasons

public static WithAllowedReasonsMatcher withNoAllowedReasons(org.hamcrest.Matcher<AnalysisResult> areImmutable)

matches

public boolean matches(Object item)

describeMismatch

public void describeMismatch(Object item,
                             org.hamcrest.Description description)
Specified by:
describeMismatch in interface org.hamcrest.Matcher<AnalysisResult>
Overrides:
describeMismatch in class org.hamcrest.BaseMatcher<AnalysisResult>

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2013. All Rights Reserved.