public class ContractVerifierUtil extends Object
Constructor and Description |
---|
ContractVerifierUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
fileToBytes(Object testClass,
String relativePath)
Helper method to convert a file to bytes
|
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)
Copyright © 2016–2019 Spring. All rights reserved.