org.newsml.toolkit.conformance
Class CatalogTest

java.lang.Object
  |
  +--org.newsml.toolkit.conformance.TestBase
        |
        +--org.newsml.toolkit.conformance.CatalogTest

public class CatalogTest
extends TestBase

Catalog-specific conformance tests.

This class reports an error if a Catalog with an Href attribute has any resources. The Href itself can be tested with RefTest.

Version:
2.0
Author:
Reuters PLC
See Also:
NewsMLTestManager

Constructor Summary
CatalogTest()
           
 
Method Summary
 void run(BaseNode node, boolean useExternal)
          Run tests for a Catalog node.
 
Methods inherited from class org.newsml.toolkit.conformance.TestBase
error, internal, warning
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatalogTest

public CatalogTest()
Method Detail

run

public void run(BaseNode node,
                boolean useExternal)
         throws NewsMLException
Run tests for a Catalog node.
Overrides:
run in class TestBase
Parameters:
node - A Catalog node.
useExternal - Not used.
Throws:
NewsMLException - If the test fails.
java.lang.ClassCastException - If the node parameter is not an instance of Catalog.
See Also:
TestBase.run(org.newsml.toolkit.BaseNode, boolean)