public class XmlConverters extends Object
Source
objects, the representation used by the XML Matcher interfaces. The method
names {code}the{code} and {code}xml{code} where chosen to provide a fluent
feel when you chain the matchers together. Example usage:
assertThat(
the(xml),
hasXPath("/mountains/mountain[@id='a']/name",
returningAnXmlNode(),
equivalentTo(xml("<name>Everest</name>"))));
| Modifier and Type | Method and Description |
|---|---|
static Source |
the(Node node) |
static Source |
the(Source xml) |
static Source |
the(String xml) |
static Source |
the(StringResult xml) |
static Source |
xml(Node node) |
static Source |
xml(Source xml) |
static Source |
xml(String xml) |
static Source |
xml(StringResult xml) |
public static Source the(StringResult xml)
public static Source xml(StringResult xml)
Copyright © 2010-2013. All Rights Reserved.