[MAGNOLIA-3806] MockHierarchyManager.isGranted() shouldn't fail with a null pointer exception but grant all permissions Created: 23/Aug/11  Updated: 26/Aug/11  Resolved: 24/Aug/11

Status: Closed
Project: Magnolia
Component/s: testing
Affects Version/s: 4.4.4
Fix Version/s: 4.4.5, 4.5

Type: Improvement Priority: Neutral
Reporter: Philipp Bärfuss Assignee: Philipp Bärfuss
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 MGNLSTK-789 Create basic AbstractSTKRenderTestCas... 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)

 Description   

The fix for 4.4.x and 4.5 will have to work differently as the AccessManager is not used in 4.5 (unsupported operation exception)



 Comments   
Comment by Philipp Bärfuss [ 23/Aug/11 ]

missing test

Comment by Philipp Bärfuss [ 23/Aug/11 ]

tests added and all merged to the trunk

Comment by Philipp Bärfuss [ 23/Aug/11 ]

Fails on trunk as setAccessManager() throws an exception. What to do?

Comment by Philipp Bärfuss [ 24/Aug/11 ]

4.4.5:

  • use the new MockAccessManger
  • tests added

4.5:

  • no code changes as the method is already working
  • deprecated the new MockAccessManger
  • tests added
Generated at Mon Feb 12 03:49:51 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.