Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sun.xacml.test
Class BasicGroupTest  view BasicGroupTest download BasicGroupTest.java

java.lang.Object
  extended bycom.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.


Field Summary
private  boolean experimental
           
private  java.lang.String name
           
private  java.util.List tests
           
 
Constructor Summary
BasicGroupTest(java.lang.String name, boolean experimental, java.util.List tests)
          Constructor that accepts all the required values
 
Method Summary
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.
 java.lang.String getName()
          Returns the name of this test.
 java.util.List getTests()
          Returns the tests contained in this group.
 boolean isErrorExpected()
          Returns whether an error is expected to happen (and is therefore a success case).
 boolean isExperimental()
          Returns whether or not this is an experimental test, and therefore not part of the required test cases.
 int run(java.lang.String testPrefix)
          Runs the test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

experimental

private boolean experimental

tests

private java.util.List tests
Constructor Detail

BasicGroupTest

public BasicGroupTest(java.lang.String name,
                      boolean experimental,
                      java.util.List tests)
Constructor that accepts all the required values

Method Detail

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