public class DataFixture extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
dataFile
Files containing tested subject.
|
protected org.apache.xerces.xs.XSModel |
model
An XSModel object representing a GML application schema.
|
protected Document |
originalSubject |
protected String |
Resource_GML_Path |
protected String |
Resource_SWE_Path |
protected Document |
testSubject |
protected URI |
testSubjectUri |
| Constructor and Description |
|---|
DataFixture() |
| Modifier and Type | Method and Description |
|---|---|
String |
generateXPathExpression(List<QName> elemNames,
Map<String,String> namespaceBindings)
Generates an XPath expression to find all instances of the given elements
in the data being validated.
|
void |
obtainTestSubject(org.testng.ITestContext testContext) |
void |
setDataFile(File dataFile)
Sets the data file.
|
void |
setSchemaModel(org.apache.xerces.xs.XSModel xsModel)
Sets the schema model (for unit testing purposes).
|
protected File dataFile
protected Document originalSubject
protected Document testSubject
protected URI testSubjectUri
protected String Resource_GML_Path
protected String Resource_SWE_Path
protected org.apache.xerces.xs.XSModel model
public void obtainTestSubject(org.testng.ITestContext testContext)
public void setDataFile(File dataFile)
dataFile - A File containing the data to be validated.public void setSchemaModel(org.apache.xerces.xs.XSModel xsModel)
xsModel - An XSModel object representing a GML application schema.public String generateXPathExpression(List<QName> elemNames, Map<String,String> namespaceBindings)
elemNames - A list of qualified names corresponding to element
declarations.namespaceBindings - A collection of namespace bindings required to evaluate the
XPath expression, where each entry maps a namespace URI (key)
to a prefix (value).Copyright © 2019 Open Geospatial Consortium. All rights reserved.