org.newsml.toolkit.conformance
Class ContentItemTest
java.lang.Object
|
+--org.newsml.toolkit.conformance.TestBase
|
+--org.newsml.toolkit.conformance.ContentItemTest
- public class ContentItemTest
- extends TestBase
ContentItem-specific conformance tests.
This class reports an error if a ContentItem has both an Href
and Encoding or DataContent (DTD conformance can confirm that
Encoding and DataContent themselves are mutually-exclusive).
- Version:
- 2.0
- Author:
- Reuters PLC
- See Also:
NewsMLTestManager
Method Summary |
void |
run(BaseNode node,
boolean useExternal)
Run tests for a ContentItem node. |
ContentItemTest
public ContentItemTest()
run
public void run(BaseNode node,
boolean useExternal)
throws NewsMLException
- Run tests for a ContentItem node.
- Overrides:
run
in class TestBase
- Parameters:
node
- A ContentItem node.useExternal
- Not used.- Throws:
NewsMLException
- If the test fails.java.lang.ClassCastException
- If the node parameter is not
an instance of ContentItem
.- See Also:
TestBase.run(org.newsml.toolkit.BaseNode, boolean)