bad.robot.http.matchers
Class Matchers

java.lang.Object
  extended by bad.robot.http.matchers.Matchers

public class Matchers
extends Object


Constructor Summary
Matchers()
           
 
Method Summary
static org.hamcrest.Matcher<org.apache.http.Header> apacheHeader(String name, String value)
           
static org.hamcrest.Matcher<URL> containsPath(String path)
           
static org.hamcrest.Matcher<HttpResponse> hasContent(org.hamcrest.Matcher<String> content)
           
static org.hamcrest.Matcher<HttpResponse> hasContent(String content)
           
static org.hamcrest.Matcher<HttpResponse> hasHeader(Header header)
           
static org.hamcrest.Matcher<HttpResponse> hasHeader(String name, org.hamcrest.Matcher<String> value)
           
static org.hamcrest.Matcher<HttpResponse> hasStatus(int status)
           
static org.hamcrest.Matcher<HttpResponse> hasStatusMessage(String message)
           
static org.hamcrest.Matcher<? extends org.apache.http.client.methods.HttpUriRequest> messageContaining(String content)
           
static org.hamcrest.Matcher<org.apache.http.client.methods.HttpUriRequest> requestContaining(Headers headers)
           
static org.hamcrest.Matcher<org.apache.http.client.methods.HttpUriRequest> requestWith(URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matchers

public Matchers()
Method Detail

hasStatus

public static org.hamcrest.Matcher<HttpResponse> hasStatus(int status)

hasStatusMessage

public static org.hamcrest.Matcher<HttpResponse> hasStatusMessage(String message)

hasContent

public static org.hamcrest.Matcher<HttpResponse> hasContent(String content)

hasContent

public static org.hamcrest.Matcher<HttpResponse> hasContent(org.hamcrest.Matcher<String> content)

hasHeader

public static org.hamcrest.Matcher<HttpResponse> hasHeader(Header header)

hasHeader

public static org.hamcrest.Matcher<HttpResponse> hasHeader(String name,
                                                           org.hamcrest.Matcher<String> value)

containsPath

public static org.hamcrest.Matcher<URL> containsPath(String path)

apacheHeader

public static org.hamcrest.Matcher<org.apache.http.Header> apacheHeader(String name,
                                                                        String value)

requestContaining

public static org.hamcrest.Matcher<org.apache.http.client.methods.HttpUriRequest> requestContaining(Headers headers)

requestWith

public static org.hamcrest.Matcher<org.apache.http.client.methods.HttpUriRequest> requestWith(URL url)

messageContaining

public static org.hamcrest.Matcher<? extends org.apache.http.client.methods.HttpUriRequest> messageContaining(String content)


Copyright © 2012. All Rights Reserved.