public class KmlDocumentTests extends BaseFixture
NS_MAP, testSubject| Constructor and Description |
|---|
KmlDocumentTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
checkEmptyElementHasIdAttribute(Element kmlElem,
org.opengis.cite.validation.ValidationErrorHandler errHandler)
An error is reported if any KML object is empty and does not have an id
attribute.
|
void |
verifyDocumentElement()
[
Test] Verify that the root element of the document has [local
name] = "kml" and [namespace name] = "http://www.opengis.net/kml/2.2". |
void |
verifyEmptyObjectHasId(ITestContext testContext)
[
Test] Verifies that a KML object that is not a descendant of
kml:Update is either (a) not empty, or (b) empty but has an 'id'
attribute value (so it can be easily updated). |
void |
verifyXmlSchemaConstraints(ITestContext testContext)
[
Test] Verifies that the document satisfies all KML 2.2 schema
constraints. |
obtainTestSubject, setTestSubject, verifyElementNotEmptypublic void verifyDocumentElement()
Test] Verify that the root element of the document has [local
name] = "kml" and [namespace name] = "http://www.opengis.net/kml/2.2".public void verifyXmlSchemaConstraints(ITestContext testContext)
Test] Verifies that the document satisfies all KML 2.2 schema
constraints.testContext - The test context containing the SuiteAttribute.KML_SCHEMA
attribute required to perform schema validation.public void verifyEmptyObjectHasId(ITestContext testContext)
Test] Verifies that a KML object that is not a descendant of
kml:Update is either (a) not empty, or (b) empty but has an 'id'
attribute value (so it can be easily updated). The relevant context is //
kml:AbstractObjectType[not(ancestor::kml:Update)].testContext - The test context containing the SuiteAttribute.KML_SCHEMA
attribute required to perform schema validation.void checkEmptyElementHasIdAttribute(Element kmlElem, org.opengis.cite.validation.ValidationErrorHandler errHandler)
kmlElem - A DOM Element representing a KML element (not a descendant of
kml:Update).errHandler - The error handler that receives any errors that were detected.Copyright © 2014 Open Geospatial Consortium. All rights reserved.