Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-534

FileUtilTestCase.testForceDeleteDir() should not delete testDirectory parent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6
    • Component/s: Utilities
    • Labels:
      None

      Description

      The test case FileUtilTestCase.testForceDeleteDir() has always attempted to delete the testDirectory parent.

      This is wrong; it should not assume that the testDirectory has a parent that can safely be deleted.

      This is why the testDirectory is currently defined as "test/io" when it would make more sense to use a temporary directory under target. It also explains why the "test" directory is left behind when tests complete.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebb Sebb
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: