org.sonatype.sisu.litmus.testsupport.hamcrest
Class URLRespondsWithStatusMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<URL>
          extended by org.sonatype.sisu.litmus.testsupport.hamcrest.URLRespondsWithStatusMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<URL>, org.hamcrest.SelfDescribing

public class URLRespondsWithStatusMatcher
extends org.hamcrest.TypeSafeMatcher<URL>


Constructor Summary
URLRespondsWithStatusMatcher(int statusCode)
           
URLRespondsWithStatusMatcher(int statusCode, int timeout)
           
 
Method Summary
protected  void describeMismatchSafely(URL item, org.hamcrest.Description mismatchDescription)
           
 void describeTo(org.hamcrest.Description description)
           
protected  boolean matchesSafely(URL item)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
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 Detail

URLRespondsWithStatusMatcher

public URLRespondsWithStatusMatcher(int statusCode)

URLRespondsWithStatusMatcher

public URLRespondsWithStatusMatcher(int statusCode,
                                    int timeout)
Method Detail

describeTo

public void describeTo(org.hamcrest.Description description)

describeMismatchSafely

protected void describeMismatchSafely(URL item,
                                      org.hamcrest.Description mismatchDescription)
Overrides:
describeMismatchSafely in class org.hamcrest.TypeSafeMatcher<URL>

matchesSafely

protected boolean matchesSafely(URL item)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<URL>


Copyright © 2008-2012 Sonatype, Inc.. All Rights Reserved.