org.newsml.toolkit.conformance
Class NewsItemTest
java.lang.Object
|
+--org.newsml.toolkit.conformance.TestBase
|
+--org.newsml.toolkit.conformance.NewsItemTest
- public class NewsItemTest
- extends TestBase
NewsItem-specific conformance tests.
This class reports an error if the NewsIdentfier's update is 'A'
and a NewsComponent, TopicSet, or Update appears, if the
NewsIdentifier's update is 'U' and an Update does not appear, if
the NewsIdentifier's update is 'N' and a NewsComponent or TopicSet
does not appear, or if the NewsIdentifier's update has any value
but 'A', 'U', or 'N'.
- Version:
- 2.0
- Author:
- Reuters PLC
- See Also:
NewsMLTestManager
Method Summary |
void |
run(BaseNode node,
boolean useExternal)
Run tests for a NewsItem node. |
NewsItemTest
public NewsItemTest()
run
public void run(BaseNode node,
boolean useExternal)
throws NewsMLException
- Run tests for a NewsItem node.
- Overrides:
run
in class TestBase
- Parameters:
node
- A NewsItem node.useExternal
- Not used.- Throws:
NewsMLException
- If the test fails.java.lang.ClassCastException
- If the node parameter is not
an instance of NewsItem
.- See Also:
TestBase.run(org.newsml.toolkit.BaseNode, boolean)