You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Ross Laidlaw (JIRA)" <ji...@apache.org> on 2014/08/06 01:23:12 UTC

[jira] [Updated] (OODT-734) Fix File Manager Unit Tests - 'system' Package

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

Ross Laidlaw updated OODT-734:
------------------------------

    Attachment: OODT-734.fix-system-tests.rlaidlaw.2014-08-05.patch.txt

Patch committed in r1616044.  As with the other sub-tasks, I'll watch the Jenkins builds and if anything unexpected happens, I'll revert the commit, otherwise I'll resolve the issue.

> Fix File Manager Unit Tests - 'system' Package
> ----------------------------------------------
>
>                 Key: OODT-734
>                 URL: https://issues.apache.org/jira/browse/OODT-734
>             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-734.fix-system-tests.rlaidlaw.2014-08-05.patch.txt
>
>
> This step fixes unit tests for the file manager's 'system' package.  Two classes were updated: TestXmlRpcFileManager and TestXmlRpcFileManagerClient.
> 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}
> Before:
> {noformat}
> TestXmlRpcFileManager Results :
>   Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
> TestXmlRpcFileManagerClient Results :
>   Tests run: 4, Failures: 4, Errors: 0, Skipped: 0
> {noformat}
> After:
> {noformat}
> TestXmlRpcFileManager Results :
>   Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> TestXmlRpcFileManagerClient Results :
>   Tests run: 4, Failures: 0, Errors: 0, Skipped: 0
> {noformat}
> 5 tests were fixed in total.



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