[ 
https://issues.apache.org/jira/browse/OODT-733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ross Laidlaw resolved OODT-733.
-------------------------------

    Resolution: Fixed

Jenkins build 1432 showed 9 test passes for the ingest package.

> Fix File Manager Unit Tests - 'ingest' Package
> ----------------------------------------------
>
>                 Key: OODT-733
>                 URL: https://issues.apache.org/jira/browse/OODT-733
>             Project: OODT
>          Issue Type: Sub-task
>          Components: file manager
>    Affects Versions: 0.7
>            Reporter: Ross Laidlaw
>            Assignee: Ross Laidlaw
>              Labels: patch, test
>             Fix For: 0.7
>
>         Attachments: OODT-733.fix-ingester-tests.rlaidlaw.2014-08-05.patch.txt
>
>
> 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:
> {noformat}
> mvn clean -Dtest=<test class name> -DfailIfNoTests=false test -pl filemgr -am
> {noformat}
> Test results showed the following changes:
> Before:
> {noformat}
> 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
> {noformat}
> After:
> {noformat}
> 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
> {noformat}
> A total of 9 tests were fixed by the patch.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to