VIVO-761 Use RequestedAction instead of Actions
Modify VitroHttpServlet, similar classes, and all subclasses to use RequestedAction instead of Actions. Modify PolicyHelper also.
This commit is contained in:
parent
f3daaaf6d7
commit
4baad05643
109 changed files with 281 additions and 583 deletions
|
@ -0,0 +1,23 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package edu.cornell.mannlib.vitro.webapp.auth.policy;
|
||||
|
||||
/**
|
||||
* Test the ability of the Policy Helper to authorize a variety of simple or complex AuthorizationRequests
|
||||
*/
|
||||
public class PolicyHelper_AuthorizationRequestTest {
|
||||
|
||||
/**Test plan
|
||||
* <pre>
|
||||
* isAuthorizedForActions with array, including empty, null, contains one or more, or contains nulls.
|
||||
* isAuthorizedForActions with collection, including empty, null, contains one or more, or contains nulls.
|
||||
* All of this is tested by AuthorizationRequestTest?
|
||||
*
|
||||
* isAuthorizedForActions with simple and complete AuthorizationRequests
|
||||
* Simple success or failure (perhaps by INCONCLUSIVE) against one or more policies.
|
||||
* AND satisfied by one policy or by two policies
|
||||
* OR satisfied by one UNAUTHORIZED and one AUTHORIZED
|
||||
* Complex structure of AND and OR satisfied in different ways by different policies.
|
||||
* </pre>
|
||||
*/
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package edu.cornell.mannlib.vitro.webapp.auth.requestedAction;
|
||||
|
||||
import edu.cornell.mannlib.vitro.testing.AbstractTestClass;
|
||||
|
||||
/**
|
||||
* Test the functions of the base class.
|
||||
*/
|
||||
public class AuthorizationRequestTest extends AbstractTestClass {
|
||||
/**
|
||||
* Test plan
|
||||
*
|
||||
* <pre>
|
||||
* Static and methods work even if the list or array is empty or null, or contains a null.
|
||||
*
|
||||
* Instance and and or work with nulls.
|
||||
* </pre>
|
||||
*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue