java.lang.Object
com.sun.xacml.test.TestDriver
- public class TestDriver
- extends java.lang.Object
Simple driver class that sets up and runs the tests.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pdp
private com.sun.xacml.PDP pdp
policyModule
private TestPolicyFinderModule policyModule
tests
private java.util.ArrayList tests
TestDriver
public TestDriver(java.lang.String testFile)
throws java.lang.Exception
- Constructor that sets up the tests for running.
configurePDP
private void configurePDP()
throws java.lang.Exception
- Private helper that configures the pdp and the factories based on the
settings in the run-time configuration file.
loadTests
private void loadTests(java.lang.String testFile)
throws java.lang.Exception
- Private helper that loads the tree of test cases
getRootNode
private org.w3c.dom.Node getRootNode(java.lang.String configFile)
throws java.lang.Exception
- Private helper that parses the file and sets up the DOM tree.
runTests
public void runTests(java.lang.String prefix)
- Runs the tests, in order, using the given location of the test data.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main-line. The first argument is the file contaning the tests to run,
and the second argument is the location of the conformance tests.
Both arguments are required.