bad.robot.http.matchers
Class HttpResponseHeaderStringMatcher

java.lang.Object
  extended by org.hamcrest.BaseMatcher<T>
      extended by org.hamcrest.TypeSafeMatcher<HttpResponse>
          extended by bad.robot.http.matchers.HttpResponseHeaderStringMatcher
All Implemented Interfaces:
org.hamcrest.Matcher<HttpResponse>, org.hamcrest.SelfDescribing

public class HttpResponseHeaderStringMatcher
extends org.hamcrest.TypeSafeMatcher<HttpResponse>


Constructor Summary
HttpResponseHeaderStringMatcher(String name, org.hamcrest.Matcher<String> valueMatcher)
           
 
Method Summary
 void describeTo(org.hamcrest.Description description)
           
static HttpResponseHeaderStringMatcher hasHeaderWithValue(String name, org.hamcrest.Matcher<String> matcher)
           
 boolean matchesSafely(HttpResponse actual)
           
 
Methods inherited from class org.hamcrest.TypeSafeMatcher
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

HttpResponseHeaderStringMatcher

public HttpResponseHeaderStringMatcher(String name,
                                       org.hamcrest.Matcher<String> valueMatcher)
Method Detail

hasHeaderWithValue

public static HttpResponseHeaderStringMatcher hasHeaderWithValue(String name,
                                                                 org.hamcrest.Matcher<String> matcher)

matchesSafely

public boolean matchesSafely(HttpResponse actual)
Specified by:
matchesSafely in class org.hamcrest.TypeSafeMatcher<HttpResponse>

describeTo

public void describeTo(org.hamcrest.Description description)


Copyright © 2012. All Rights Reserved.