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

Chris A. Mattmann resolved OODT-174.
------------------------------------

    Resolution: Fixed

- patch applied in r1091582. You rox Mr. Google! :)

> TestAcquisitionDateVersioner fails in the later evening
> -------------------------------------------------------
>
>                 Key: OODT-174
>                 URL: https://issues.apache.org/jira/browse/OODT-174
>             Project: OODT
>          Issue Type: Bug
>          Components: file manager
>    Affects Versions: 0.2
>         Environment: none
>            Reporter: Brian Foster
>            Assignee: Chris A. Mattmann
>            Priority: Minor
>             Fix For: 0.3
>
>         Attachments: OODT-174.2011-04-12.patch.txt
>
>
> -------------------------------------------------------------------------------
> Test set: org.apache.oodt.cas.filemgr.versioning.TestAcquisitionDateVersioner
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.453 sec <<< 
> FAILURE!
> testVersionerWithNoStartDateTimeAndNoAcqDate(org.apache.oodt.cas.filemgr.versioning.TestAcquisitionDateVersioner)
>   Time elapsed: 0.425 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: 
> expected:<...le:/home/files/11041[1]/file1.txt> but 
> was:<...le:/home/files/11041[2]/file1.txt>
>         at junit.framework.Assert.assertEquals(Assert.java:81)
>         at junit.framework.Assert.assertEquals(Assert.java:87)
>         at 
> org.apache.oodt.cas.filemgr.versioning.TestAcquisitionDateVersioner.testVersionerWithNoStartDateTimeAndNoAcqDate(TestAcquisitionDateVersioner.java:70)
> The problem is that TestAcquisitionDateVersioner doesn't set timezone in its 
> unit-test as it does in versioner:
>       acqDateFormatter.setTimeZone(TimeZone.getTimeZone("UTC"));
> -- Side NOTE . . . also notice this when looking into the problem . . .
> also it doesn't use CAS.ProductReceivedTime as documented:
> (line 79)    // grab CAS.ProductReceivedTime 
> instead it just uses date now:
> (line 85)       Date casProdReceivedTime = new Date();

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to