com.jayway.restassured.matcher
Class RestAssuredMatchers

java.lang.Object
  extended by com.jayway.restassured.matcher.RestAssuredMatchers

public class RestAssuredMatchers
extends Object

Providers Hamcrest matchers that may be useful when validating a response.


Constructor Summary
RestAssuredMatchers()
           
 
Method Summary
static org.hamcrest.Matcher<String> matchesDtd(File dtd)
          Evaluates to true if an XML string matches the supplied DTD.
static org.hamcrest.Matcher<String> matchesDtd(InputStream dtd)
          Evaluates to true if an XML string matches the supplied DTD.
static org.hamcrest.Matcher<String> matchesDtd(String dtd)
          Evaluates to true if an XML string matches the supplied DTD.
static org.hamcrest.Matcher<String> matchesDtd(URL url)
          Evaluates to true if an XML string matches the supplied DTD.
static org.hamcrest.Matcher<String> matchesXsd(File xsd)
          Evaluates to true if an XML string matches the supplied XSD (Xml Schema).
static org.hamcrest.Matcher<String> matchesXsd(InputStream xsd)
          Evaluates to true if an XML string matches the supplied XSD (Xml Schema).
static org.hamcrest.Matcher<String> matchesXsd(Reader xsd)
          Evaluates to true if an XML string matches the supplied XSD (Xml Schema).
static org.hamcrest.Matcher<String> matchesXsd(String xsd)
          Evaluates to true if an XML string matches the supplied XSD (Xml Schema).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestAssuredMatchers

public RestAssuredMatchers()
Method Detail

matchesXsd

public static org.hamcrest.Matcher<String> matchesXsd(String xsd)
Evaluates to true if an XML string matches the supplied XSD (Xml Schema).

Parameters:
xsd - The XSD to match
Returns:
The XSD matcher

matchesXsd

public static org.hamcrest.Matcher<String> matchesXsd(InputStream xsd)
Evaluates to true if an XML string matches the supplied XSD (Xml Schema).

Parameters:
xsd - The XSD to match
Returns:
The XSD matcher

matchesXsd

public static org.hamcrest.Matcher<String> matchesXsd(Reader xsd)
Evaluates to true if an XML string matches the supplied XSD (Xml Schema).

Parameters:
xsd - The XSD to match
Returns:
The XSD matcher

matchesXsd

public static org.hamcrest.Matcher<String> matchesXsd(File xsd)
Evaluates to true if an XML string matches the supplied XSD (Xml Schema).

Parameters:
xsd - The XSD to match
Returns:
The XSD matcher

matchesDtd

public static org.hamcrest.Matcher<String> matchesDtd(String dtd)
Evaluates to true if an XML string matches the supplied DTD.

Parameters:
dtd - The DTD to match
Returns:
The DTD matcher

matchesDtd

public static org.hamcrest.Matcher<String> matchesDtd(InputStream dtd)
Evaluates to true if an XML string matches the supplied DTD.

Parameters:
dtd - The DTD to match
Returns:
The DTD matcher

matchesDtd

public static org.hamcrest.Matcher<String> matchesDtd(File dtd)
Evaluates to true if an XML string matches the supplied DTD.

Parameters:
dtd - The DTD to match
Returns:
The DTD matcher

matchesDtd

public static org.hamcrest.Matcher<String> matchesDtd(URL url)
Evaluates to true if an XML string matches the supplied DTD.

Parameters:
dtd - The DTD to match
Returns:
The DTD matcher


Copyright © 2010-2011. All Rights Reserved.