You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Brian Foster (JIRA)" <ji...@apache.org> on 2011/04/12 23:32:05 UTC
[jira] [Updated] (OODT-174) TestAcquisitionDateVersioner fails in
the later evening
[ https://issues.apache.org/jira/browse/OODT-174?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Foster updated OODT-174:
------------------------------
Attachment: OODT-174.2011-04-12.patch.txt
- attached patch
> 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: Brian Foster
> 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