org.newsml.toolkit.conformance
Class NewsLineTest

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

public class NewsLineTest
extends TestBase

NewsLine-specific conformance tests.

This class reports an error if a NewsLine contains more than one NewsLineTest child with the same xml:lang value.

Version:
2.0
Author:
Reuters PLC
See Also:
NewsMLTestManager

Constructor Summary
NewsLineTest()
           
 
Method Summary
 void run(BaseNode node, boolean useExternal)
          Run tests for a NewsLine 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

NewsLineTest

public NewsLineTest()
Method Detail

run

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