issrg.test.pmi
Class PMITest

java.lang.Object
  extended by issrg.pba.rbac.Time
      extended by issrg.pba.rbac.Clock
          extended by issrg.test.rbac.PermisRBACTest
              extended by issrg.test.pmi.PMITest
All Implemented Interfaces:
java.lang.Comparable

public class PMITest
extends PermisRBACTest

This class sets up a PMI test using input files like for PermisRBACTest, but first a xml: URL Handler is registered and a XMLAuthTokenParser is set.


Nested Class Summary
static class PMITest.TestRuleComparator
           
static class PMITest.XMLURLHandler
          This URLHandler constructs PMIXMLRepository given a xml: URL.
 
Field Summary
 
Fields inherited from class issrg.test.rbac.PermisRBACTest
out
 
Fields inherited from class issrg.pba.rbac.Time
log, s_defaultTimeZone, TIME_TYPE
 
Constructor Summary
PMITest()
           
 
Method Summary
 PermisRBAC init(java.util.Map setup, java.io.File parentDir)
          This method is called to create a PermisRBAC object using the current setup.
static void main(java.lang.String[] args)
           
 void setInitValue(java.util.Map setup, java.lang.String var, java.lang.String val)
          This method is called to set init values for Permis RBAC in this test.
 
Methods inherited from class issrg.test.rbac.PermisRBACTest
getTime, latch, process, setTime, test, toTime
 
Methods inherited from class issrg.pba.rbac.Clock
getEvaluationTime
 
Methods inherited from class issrg.pba.rbac.Time
calendarToTime, calendarToTime, compareTo, equals, getDefaultTimeZone, parse, register, setDefaultTimeZone, setDefaultTimeZone, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PMITest

public PMITest()
Method Detail

main

public static void main(java.lang.String[] args)

init

public PermisRBAC init(java.util.Map setup,
                       java.io.File parentDir)
                throws java.lang.Exception
Description copied from class: PermisRBACTest
This method is called to create a PermisRBAC object using the current setup. After this the work of PermisRBAC object will be tested using the standard methods to getCreds and decision.

Overrides:
init in class PermisRBACTest
Parameters:
setup - the Map of values collected prior to init
parentDir - the directory in which the config file is located and all relative paths should be computed relative to it
Throws:
java.lang.Exception

setInitValue

public void setInitValue(java.util.Map setup,
                         java.lang.String var,
                         java.lang.String val)
                  throws PbaException
Description copied from class: PermisRBACTest
This method is called to set init values for Permis RBAC in this test. The strings are guaranteed to be intern() values, so they can be compared using ==, which is faster.

Overrides:
setInitValue in class PermisRBACTest
Throws:
PbaException