Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4757

Missing setUp for PathTest#testGetAbsoluteFileSystemPathPrependsApplicationRootDirIfPathIsRelative

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.8, 5.0
    • 4.5.7, 5.0
    • None
    • None

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              dlipp Daniel Lipp
              dlipp Daniel Lipp
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD