public final class ContractVerifierUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ContractVerifierUtil.ContractVerifierMap
A map with a fluent interface.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
fileToBytes(Object testClass,
String relativePath)
Helper method to convert a file to bytes.
|
static ContractVerifierUtil.ContractVerifierMap |
map() |
static Node |
nodeFromXPath(Document parsedXml,
String path)
Helper method to retrieve XML
Node with provided xPath. |
static String |
valueFromXPath(Document parsedXml,
String path)
Helper method to retrieve XML node value with provided xPath.
|
public static byte[] fileToBytes(Object testClass, String relativePath)
testClass
- - test class relative to which the file is storedrelativePath
- - relative path to the filepublic static String valueFromXPath(Document parsedXml, String path)
public static Node nodeFromXPath(Document parsedXml, String path)
Node
with provided xPath.public static ContractVerifierUtil.ContractVerifierMap map()
Copyright © 2016–2021 Spring. All rights reserved.