[MAGNOLIA-6161] Allow setting of access manager in mock context to simplify testing of security related features Created: 09/Apr/15  Updated: 01/Jul/15  Resolved: 09/Apr/15

Status: Closed
Project: Magnolia
Component/s: core, security, testing
Affects Version/s: None
Fix Version/s: 5.3.9

Type: Improvement Priority: Neutral
Reporter: Jan Haderka Assignee: Jan Haderka
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
is depended upon by MGNLUI-3395 WritePermissionRequiredRule incorrect... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Currently it is not possible to emulate responses from access manager in tests which makes testing of certain scenarios more difficult to setup.



 Comments   
Comment by Mikaël Geljić [ 21/Apr/15 ]

Re: null-check in PermissionUtil, let's rather throw an IllegalArgumentException or IllegalStateException; there's no null-pointer there whatsoever. Otherwise all good, will definitely come in handy.

Generated at Mon Feb 12 04:11:52 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.