org.opengis.cite.osxgeotime.core
Class ConceptualModelTests

java.lang.Object
  extended by org.opengis.cite.osxgeotime.core.ConceptualModelTests

public class ConceptualModelTests
extends Object

Includes tests based on the fundamental conceptual model.

Sources


Constructor Summary
ConceptualModelTests()
           
 
Method Summary
 void checkSchematronRules()
          [Test] Verify that the test subject satisfies the supplementary Schematron constraints defined in RFC 4287 and Geo-Time Extensions.
 void setTestSubject(Document testSubject)
          Sets the test subject.
 void setupClassFixture(org.testng.ITestContext testContext)
          Obtains the test subject from the ISuite context and creates a catalog-based resource resolver.
 void validateAtomRepresentation()
          [Test] Verifies that the test subject is a valid Atom representation according to the (informative) RELAX NG grammar listed in RFC 4287.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConceptualModelTests

public ConceptualModelTests()
Method Detail

setupClassFixture

public void setupClassFixture(org.testng.ITestContext testContext)
Obtains the test subject from the ISuite context and creates a catalog-based resource resolver. The suite attribute SuiteAttribute.TEST_SUBJECT should evaluate to a DOM Document node.

Parameters:
testContext - The test (group) context.

setTestSubject

public void setTestSubject(Document testSubject)
Sets the test subject. This method is intended to facilitate unit testing.

Parameters:
testSubject - A Document node representing the test subject or metadata about it.

validateAtomRepresentation

public void validateAtomRepresentation()
                                throws SAXException,
                                       IOException
[Test] Verifies that the test subject is a valid Atom representation according to the (informative) RELAX NG grammar listed in RFC 4287.

Throws:
SAXException
IOException
See Also:
RFC 4287, Appendix B: RELAX NG Compact Schema

checkSchematronRules

public void checkSchematronRules()
                          throws SAXException,
                                 IOException
[Test] Verify that the test subject satisfies the supplementary Schematron constraints defined in RFC 4287 and Geo-Time Extensions.

Throws:
SAXException
IOException
See Also:
RFC 4287


Copyright © 2014. All Rights Reserved.