org.opengis.cite.osxgeotime.core
Class RelaxNGTest

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

public class RelaxNGTest
extends Object

Includes tests based on the fundamental conceptual model.

Sources


Constructor Summary
RelaxNGTest()
           
 
Method Summary
 void setRncFile(String rncFile)
          Sets the Schema File.
 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 validateXMLfromRNC()
          [Test] Verifies that the test subject is a valid OpenSearch description 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

RelaxNGTest

public RelaxNGTest()
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.

setRncFile

public void setRncFile(String rncFile)
Sets the Schema File. This method is intended to facilitate unit testing.

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

validateXMLfromRNC

public void validateXMLfromRNC()
                        throws SAXException,
                               IOException
[Test] Verifies that the test subject is a valid OpenSearch description document according to the (informative) RELAX NG grammar listed in OGC 10-032

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


Copyright © 2014. All Rights Reserved.