public abstract class XpathReturnType<T> extends Object
assertThat(xml, hasXPath("count(/mountains/mountain)", equalTo("2")));
assertThat(xml,//
hasXPath("count(/mountains/mountain)", //
returningANumber(), //
greaterThanOrEqualTo(2d)));
| Constructor and Description |
|---|
XpathReturnType() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract QName |
evaluationMode() |
static XpathReturnType<Boolean> |
returningABoolean() |
static XpathReturnType<Double> |
returningANumber() |
static XpathReturnType<String> |
returningAnXmlNode()
Warning: The return type passed to subsequent matchers will actually be a
Source rather than a Node.
|
static XpathReturnType<String> |
returningAString() |
protected abstract QName evaluationMode()
public static XpathReturnType<Double> returningANumber()
public static XpathReturnType<String> returningAnXmlNode()
public static XpathReturnType<String> returningAString()
public static XpathReturnType<Boolean> returningABoolean()
Copyright © 2010-2013. All Rights Reserved.