public class CommonFeatureTests extends CommonFixture
CommonFixture.TargetElementsIteratorclient, conformanceLevel, kmlDoc, request, response, ROOT_PKG_PATH, targetElements| Constructor and Description |
|---|
CommonFeatureTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
atomAuthor()
[Test] Checks that an atom:author element satisfies all of the following
assertions:
the content of the child atom:uri element is an IRI reference;
the content of the child atom:email element conforms to the
"addr-spec" production rule in RFC 5322 (Internet Message Format
).
|
void |
checkFeatureConstraints()
[Test] Checks various Schematron constraints that apply to any KML
feature:
ATC-135: Mode-specific feature style (StyleMap)
ATC-232: Feature metadata - atom:link
|
void |
getSharedStyles(ITestContext testContext)
Get the identifiers of all shared styles in the instance document.
|
void |
phoneNumber()
[Test] Checks that the value of the kml:phoneNumber element is a valid
'tel' URI that complies with RFC 3966, The tel URI for Telephone
Numbers.
|
void |
validExtendedData()
[Test] Checks that the content of a kml:ExtendedData element satisfies
all applicable constraints.
|
void |
validRegion()
[Test] Checks that the content of a kml:Region element satisfies all
applicable constraints.
|
void |
validStyleReference()
[Test] Checks that a kml:styleUrl element satisfies all of the following
constraints:
its value is a valid relative or absolute URL that refers to a shared
style definition (any element that substitutes for
kml:AbstractStyleSelectorGroup)
if the reference is an absolute URI, it conforms to the 'http' or
'file' URI schemes
it includes a fragment identifier that conforms to the shorthand
pointer syntax as defined in the W3C XPointer framework
|
void |
validViewpoint()
[Test] Checks that the content of a kml:Camera or kml:LookAt element
satisfies all applicable constraints.
|
buildGetRequest, clearMessages, findTargetElements, getResponseEntityAsDocument, initCommonFixture, setTargetElements, targetElementsProviderpublic void getSharedStyles(ITestContext testContext)
testContext - The test context.public void validStyleReference()
public void validRegion()
RegionValidatorpublic void validViewpoint()
public void validExtendedData()
ExtendedDataValidatorpublic void phoneNumber()
public void atomAuthor()
The content model is specified by the atomPersonConstruct
pattern in the RELAX NG schema. Note that within a container element
authorship is inherited by all child feature members; it may be
overridden on a per-feature basis.
public void checkFeatureConstraints()
Copyright © 2016 Open Geospatial Consortium. All rights reserved.