[MAGNOLIA-4757] Missing setUp for PathTest#testGetAbsoluteFileSystemPathPrependsApplicationRootDirIfPathIsRelative Created: 27/Dec/12  Updated: 11/Feb/13  Resolved: 27/Dec/12

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 4.5.7, 5.0
Fix Version/s: 4.5.8, 5.0

Type: Bug Priority: Critical
Reporter: Daniel Lipp Assignee: Daniel Lipp
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

PathTest#testGetAbsoluteFileSystemPathPrependsApplicationRootDirIfPathIsRelative requires SystemProperty.MAGNOLIA_APP_ROOTDIR to be set - else it will throw a NPE on execution. Looks like we've just been lucky that in most cases another test had set and not cleared it.

To be reproducibly working all PathTest should have a proper setUp and tearDown.


Generated at Mon Feb 12 03:58:45 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.