public class FeatureTests extends BaseFixture
NS_MAP, testSubject| Constructor and Description |
|---|
FeatureTests() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
assertValidEmailAddr(String emailAddr)
Asserts that a given email address conforms to the "addr-spec" production
in RFC 5322.
|
(package private) void |
assertValidIRI(String id)
Asserts that a resource identifier is a valid internationalized resource
identifier (IRI).
|
void |
verifyAltitudeInGroundOverlay()
[
Test] Verifies that a kml:GroundOverlay feature with an
kml:altitudeMode value of "absolute" includes a kml:altitude element. |
void |
verifyAtomAuthor()
[
Test] Verifies that that an atom:author element satisfies all of
the following constraints:
the content of the atom:uri element is an IRI reference;
the content of the atom:email element conforms to the "addr-spec"
production in RFC 2822.
Sources |
void |
verifyAtomLink()
[
Test] Verifies that the value of the atom:link/@rel attribute is
"related". |
void |
verifyPhoneNumberSyntax()
[
Test] Verifies that the value of the kml:phoneNumber element is
a 'tel' URI that conforms to RFC 3966. |
void |
verifyPhotoOverlay()
[
Test] Verifies that if a kml:PhotoOverlay element is not a
descendant of kml:Update, then it includes all of the following child
elements: kml:Icon, kml:ViewVolume, kml:Point, and kml:Camera. |
void |
verifyRegion()
[
Test] Verifies that if a kml:Region element is not a descendant
of kml:Update, it contains the kml:LatLonAltBox and kml:Lod elements. |
void |
verifyRegionLod()
[
Test] Verifies that a kml:Lod element (with parent kml:Region)
satisfies all of the following constraints:
if it is not a descendant of kml:Update, it contains the
kml:minLodPixels element;
kml:minLodPixels < kml:maxLodPixels (where a value of -1 denotes
positive infinity).
|
void |
verifyViewVolumeContent()
[
Test] Verifies that a kml:ViewVolume element (in
kml:GroundOverlay) includes at least the following child elements:
kml:leftFov, kml:rightFov, kml:bottomFov, kml:topFov, and kml:near
(non-negative value). |
obtainTestSubject, setTestSubject, verifyElementNotEmptypublic void verifyViewVolumeContent()
Test] Verifies that a kml:ViewVolume element (in
kml:GroundOverlay) includes at least the following child elements:
kml:leftFov, kml:rightFov, kml:bottomFov, kml:topFov, and kml:near
(non-negative value).public void verifyPhoneNumberSyntax()
Test] Verifies that the value of the kml:phoneNumber element is
a 'tel' URI that conforms to RFC 3966.public void verifyAtomAuthor()
Test] Verifies that that an atom:author element satisfies all of
the following constraints:
public void verifyAtomLink()
Test] Verifies that the value of the atom:link/@rel attribute is
"related". If the attribute is not present, the link must be interpreted
as if @rel="alternate"; that is, the referent is an alternate
version of the resource. The value "related" simply signifies a generic
relationship.public void verifyAltitudeInGroundOverlay()
Test] Verifies that a kml:GroundOverlay feature with an
kml:altitudeMode value of "absolute" includes a kml:altitude element.public void verifyPhotoOverlay()
Test] Verifies that if a kml:PhotoOverlay element is not a
descendant of kml:Update, then it includes all of the following child
elements: kml:Icon, kml:ViewVolume, kml:Point, and kml:Camera.public void verifyRegion()
Test] Verifies that if a kml:Region element is not a descendant
of kml:Update, it contains the kml:LatLonAltBox and kml:Lod elements.public void verifyRegionLod()
Test] Verifies that a kml:Lod element (with parent kml:Region)
satisfies all of the following constraints:
void assertValidEmailAddr(String emailAddr)
emailAddr - A String denoting an email address.void assertValidIRI(String id)
id - A String representing a resource identifier.Copyright © 2014 Open Geospatial Consortium. All rights reserved.