org.newsml.toolkit.conformance
Class NewsComponentTest
java.lang.Object
|
+--org.newsml.toolkit.conformance.TestBase
|
+--org.newsml.toolkit.conformance.NewsComponentTest
- public class NewsComponentTest
- extends TestBase
NewsComponent-specific conformance tests.
This class reports an error if a NewsComponent has no Role and
does not appear immediately inside a NewsItem, or if any of the
news component's members does not have a match for one of the bases
for choice.
- Version:
- 2.0
- Author:
- Reuters PLC
- See Also:
NewsMLTestManager
Method Summary |
void |
run(BaseNode node,
boolean useExternal)
Run tests for a NewsComponent node. |
NewsComponentTest
public NewsComponentTest()
run
public void run(BaseNode node,
boolean useExternal)
throws NewsMLException
- Run tests for a NewsComponent node.
- Overrides:
run
in class TestBase
- Parameters:
node
- A NewsComponent node.useExternal
- Not used.- Throws:
NewsMLException
- If the test fails.java.lang.ClassCastException
- If the node parameter is not
an instance of NewsComponent
.- See Also:
TestBase.run(org.newsml.toolkit.BaseNode, boolean)