Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-482

Wrong assertion messages in RAM provider test case

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None
    • Environment:

      source

      Description

      The JUnit testcase org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest.testSmallFS() writes

      assertTrue("Both files should exist in different fs instances.", fo3
      .getFileSystem() == fo4.getFileSystem());

      Where the assert does not match the text, it should be "Both files should exist in the same fs instance." like the asert before.

      The fail is also wrong text:

      fail("It shouldn't save such a small file");

      it should read

      fail("It should be able to save such a small file");

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              b.eckenfels Bernd Eckenfels
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: