com.redhat.rhn.common.security.acl.test
Class AclTest.MockAclHandler

java.lang.Object
  extended by com.redhat.rhn.common.security.acl.test.AclTest.MockAclHandler
All Implemented Interfaces:
AclHandler
Enclosing class:
AclTest

public static class AclTest.MockAclHandler
extends java.lang.Object
implements AclHandler


Constructor Summary
AclTest.MockAclHandler()
           
 
Method Summary
 boolean aclHandlerOne(java.lang.Object ctx, java.lang.String[] params)
           
 boolean aclHandlerTwo(java.lang.Object ctx, java.lang.String[] params)
           
 boolean aclHandlerZero(java.lang.Object ctx, java.lang.String[] params)
           
 void setExpected(java.lang.String handlerName, java.lang.String[] params)
          Set the parameters expected to be given a handler upon a call to evalAcl.
 void verify()
          Call to verify that the expected parameters match the parameters given to the handler when Acl calls handleAcl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AclTest.MockAclHandler

public AclTest.MockAclHandler()
Method Detail

setExpected

public void setExpected(java.lang.String handlerName,
                        java.lang.String[] params)
Set the parameters expected to be given a handler upon a call to evalAcl. These get reset with verify() is called.


aclHandlerZero

public boolean aclHandlerZero(java.lang.Object ctx,
                              java.lang.String[] params)

aclHandlerOne

public boolean aclHandlerOne(java.lang.Object ctx,
                             java.lang.String[] params)

aclHandlerTwo

public boolean aclHandlerTwo(java.lang.Object ctx,
                             java.lang.String[] params)

verify

public void verify()
Call to verify that the expected parameters match the parameters given to the handler when Acl calls handleAcl. The expectation values get reset when this is called.