bad.robot.http.matchers
Class Matchers
java.lang.Object
bad.robot.http.matchers.Matchers
public class Matchers
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Matchers
public Matchers()
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.