org.newsml.toolkit.conformance
Class ResourceTest

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

public class ResourceTest
extends TestBase

Resource-specific conformance tests.

Test that the same URL does not appear twice in a resource.

Version:
2.0
Author:
Reuters PLC
See Also:
NewsMLTestManager

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

ResourceTest

public ResourceTest()
Method Detail

run

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