| Modifier and Type | Method and Description |
|---|---|
static void |
assertContentType(javax.ws.rs.core.MultivaluedMap<String,String> headers,
String expectedContentType)
Asserts that the actual content type matches the expected content type.
|
static void |
assertContentType(org.testng.asserts.SoftAssert sa,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
String expectedContentType)
Asserts that the actual content type matches the expected content type.
|
static void |
assertSimpleWMTSCapabilities(Document doc)
Asserts that the given DOM document has the expected root element 'WMTS_Capabilities' in namespace
{http://www.opengis.net/wmts}.
|
static void |
assertStatusCode(int actualCode,
int... expectedCodes)
Asserts that the actual HTTP status code matches one of the expected status codes.
|
static void |
assertStatusCode(org.testng.asserts.SoftAssert sa,
int actualCode,
int... expectedCodes)
Asserts that the actual HTTP status code matches one of the expected status codes.
|
static void |
assertUriIsResolvable(org.testng.asserts.SoftAssert sa,
String url)
Asserts that the url is resolvable (status code is 200).
|
static void |
assertUrl(org.testng.asserts.SoftAssert sa,
String url)
Asserts that the string is a valid url.
|
static void |
assertUrl(String url)
Asserts that the string is a valid url.
|
static void |
assertVersion100(Document response)
Asserts that the actual content type matches the expected content type.
|
static void |
assertXPath(org.testng.asserts.SoftAssert sa,
String expr,
Node context,
de.latlon.ets.core.util.NamespaceBindings nsBindings)
Asserts that an XPath 1.0 expression holds true for the given evaluation context.
|
static void |
assertXPath(String expr,
Node context,
de.latlon.ets.core.util.NamespaceBindings nsBindings)
Asserts that an XPath 1.0 expression holds true for the given evaluation context.
|
public static void assertSimpleWMTSCapabilities(Document doc)
doc - A Document node having {http://www.opengis.net/wmts} as the
root element.public static void assertVersion100(Document response)
response - A Document node having {http://www.opengis.net/wmts} as the
root element.public static void assertStatusCode(org.testng.asserts.SoftAssert sa,
int actualCode,
int... expectedCodes)
sa - an optional assertion class to delay terminating test and handle in the calling routineactualCode - The actual status code.expectedCodes - An int[] array containing the expected status codes.public static void assertStatusCode(int actualCode,
int... expectedCodes)
actualCode - The actual status code.expectedCodes - An int[] array containing the expected status codes.public static void assertContentType(org.testng.asserts.SoftAssert sa,
javax.ws.rs.core.MultivaluedMap<String,String> headers,
String expectedContentType)
sa - an optional assertion class to delay terminating test and handle in the calling routineheaders - The header of the response.expectedContentType - The expected content type, never null.public static void assertContentType(javax.ws.rs.core.MultivaluedMap<String,String> headers, String expectedContentType)
headers - The header of the response.expectedContentType - The expected content type, never null.public static void assertUrl(org.testng.asserts.SoftAssert sa,
String url)
sa - an optional assertion class to delay terminating test and handle in the calling routineurl - The url to check.public static void assertUrl(String url)
url - The url to check.public static void assertUriIsResolvable(org.testng.asserts.SoftAssert sa,
String url)
sa - an optional assertion class to delay terminating test and handle in the calling routineurl - The url to check.public static void assertXPath(org.testng.asserts.SoftAssert sa,
String expr,
Node context,
de.latlon.ets.core.util.NamespaceBindings nsBindings)
sa - an optional assertion class to delay terminating test and handle in the calling routineexpr - A valid XPath 1.0 expression.context - The context node.nsBindings - A collection of namespace bindings for the XPath expression, where each entry maps a namespace URI
(key) to a prefix (value). Never null.public static void assertXPath(String expr, Node context, de.latlon.ets.core.util.NamespaceBindings nsBindings)
expr - A valid XPath 1.0 expression.context - The context node.nsBindings - A collection of namespace bindings for the XPath expression, where each entry maps a namespace URI
(key) to a prefix (value). Never null.Copyright © 2022 Open Geospatial Consortium. All rights reserved.