org.opengis.cite.osxgeotime.core
Class AtomDocumentTest

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

public class AtomDocumentTest
extends Object

Includes tests based on the fundamental conceptual model.

Sources


Constructor Summary
AtomDocumentTest()
           
 
Method Summary
 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 document according to the (informative) RELAX NG grammar listed in OGC 10-032
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AtomDocumentTest

public AtomDocumentTest()
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 document according to the (informative) RELAX NG grammar listed in OGC 10-032

Throws:
SAXException
IOException
See Also:
atomgeo.rnc, RELAX NG Compact Schema


Copyright © 2014. All Rights Reserved.