java.lang.Object
com.sun.xacml.test.BasicGroupTest
- All Implemented Interfaces:
- Test
- public class BasicGroupTest
- extends java.lang.Object
- implements Test
A basic implementation of a group of tests.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
experimental
private boolean experimental
tests
private java.util.List tests
BasicGroupTest
public BasicGroupTest(java.lang.String name,
boolean experimental,
java.util.List tests)
- Constructor that accepts all the required values
getInstance
public static BasicGroupTest getInstance(org.w3c.dom.Node root,
com.sun.xacml.PDP pdp,
TestPolicyFinderModule module)
- Creates an instance of a group of tests from its XML representation.
getName
public java.lang.String getName()
- Description copied from interface:
Test
- Returns the name of this test.
- Specified by:
getName
in interface Test
isErrorExpected
public boolean isErrorExpected()
- Description copied from interface:
Test
- Returns whether an error is expected to happen (and is therefore a
success case).
- Specified by:
isErrorExpected
in interface Test
isExperimental
public boolean isExperimental()
- Description copied from interface:
Test
- Returns whether or not this is an experimental test, and therefore
not part of the required test cases.
- Specified by:
isExperimental
in interface Test
getTests
public java.util.List getTests()
- Returns the tests contained in this group.
run
public int run(java.lang.String testPrefix)
- Description copied from interface:
Test
- Runs the test.
- Specified by:
run
in interface Test