public class BaseFixture extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,String> |
NS_MAP
An immutable Map containing a KML namespace binding where the prefix is
"kml"
|
protected Document |
testSubject
A DOM Document representing the main KML document
|
| Constructor and Description |
|---|
BaseFixture() |
| Modifier and Type | Method and Description |
|---|---|
void |
obtainTestSubject(org.testng.ITestContext testContext)
Obtains the test subject from the ISuite test context.
|
void |
setTestSubject(Document testSubject)
Sets the test subject (intended only to facilitate unit testing).
|
protected void |
verifyElementNotEmpty(String localName,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
Checks that the KML element with the specified local name has one or more
child KML elements if it is not a descendant of
kml:Update.
|
protected static final Map<String,String> NS_MAP
protected Document testSubject
public void obtainTestSubject(org.testng.ITestContext testContext)
SuiteAttribute.TEST_SUBJECT
should evaluate to a DOM Document node.testContext - The test (group) context.public void setTestSubject(Document testSubject)
testSubject - A Document node representing the test subject.protected void verifyElementNotEmpty(String localName, org.opengis.cite.validation.ValidationErrorHandler errHandler)
localName - The name of an element in the namespace
"http://www.opengis.net/kml/2.2".errHandler - The error handler that collects all detected constraint
violations.Copyright © 2021 Open Geospatial Consortium. All rights reserved.