XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7
    • Component/s: file manager
    • Labels:
    • Skill Level:
      Don't Know (Unsure) - The default level

      Description

      This step fixes unit tests for the file manager's ingest package. Four classes were updated: TestCachedIngester, TestLocalCache, TestRmiCache and TestStdIngester.

      For each class, hard-coded paths to test resources were replaced with paths from URLs via the 'getResource()' method. Additionally, java.util.Properties objects were used to set System properties and then restore initial settings after each test method runs (in setUp and tearDown methods).

      The following Maven command was used to run each test class from the top-level (trunk) directory:

      mvn clean -Dtest=<test class name> -DfailIfNoTests=false test -pl filemgr -am
      

      Test results showed the following changes:

      Before:

      TestCachedIngester Results :
        Tests run: 2, Failures: 2, Errors: 0, Skipped: 0
      TestLocalCache Results :
        Tests run: 3, Failures: 3, Errors: 0, Skipped: 0
      TestRmiCache Results :
        Tests run: 3, Failures: 3, Errors: 0, Skipped: 0
      TestStdIngester Results :
        Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
      

      After:

      TestCachedIngester Results :
        Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
      TestLocalCache Results :
        Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
      TestRmiCache Results :
        Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
      TestStdIngester Results :
        Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
      

      A total of 9 tests were fixed by the patch.

        Attachments

          Activity

            People

            • Assignee:
              rlaidlaw Ross Laidlaw
              Reporter:
              rlaidlaw Ross Laidlaw
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: