Thanks a lot ! This is working now

-----
Huân Thebault
Centre de Calcul de l'IN2P3
Development Team
Tel. Std                 +33 4 78 93 08 80



-----Message d'origine-----
De : Edwin Shin [mailto:[email protected]] 
Envoyé : mardi 25 mai 2010 20:22
À : Huân Thebault
Cc : fedora-commons-develop...@lists. sourceforge. net
Objet : Re: [Fedora-commons-developers] Failed tests:
testParseDate(org.fcrepo.server.utilities.TestDateUtility)

Huân,

You can just remove the test string that's causing the failure for now,
i.e., remove "Thu, 01 Jan 1970 00:00:00 GMT" from line 88.

As André pointed out (thank-you André) this is due to an existing issue. As
far as I know, there's no production code that actually internally consumes
dates in that localized format, so there shouldn't be any problem and I you
shouldn't have to change your locale.

Eddie

On 25 May 2010, at 5:02 PM, Huân Thebault wrote:

> I've added the print, I've got this :
> 
> Running org.fcrepo.server.utilities.TestDateUtility
> parsing: 1970-01-01T00:00:00.000Z
> parsing: 1970-01-01T00:00:00.00Z
> parsing: 1970-01-01T00:00:00.0Z
> parsing: 1970-01-01T00:00:00Z
> parsing: 1970-01-01Z
> parsing: 1970-01-01T00:00:00.000
> parsing: 1970-01-01T00:00:00.00
> parsing: 1970-01-01T00:00:00.0
> parsing: 1970-01-01T00:00:00
> parsing: 1970-01-01
> parsing: Thu, 01 Jan 1970 00:00:00 GMT
> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.297 sec
> <<< FAILURE!
> 
> 
> I'm in France, so as said andre it looks like this :
> http://www.fedora-commons.org/jira/browse/FCREPO-667
> 
> But what var do I exactly have to change in windows ? Or is there any way
to
> get it to work without changing any var ?
> 
> Regards,
> 
> -----
> Huân Thebault
> Centre de Calcul de l'IN2P3
> Development Team
> Tel. Std               +33 4 78 93 08 80
> 
> 
> 
> -----Message d'origine-----
> De : Edwin Shin [mailto:[email protected]] 
> Envoyé : mardi 25 mai 2010 15:53
> À : Huân Thebault
> Cc : fedora-commons-develop...@lists. sourceforge. net
> Objet : Re: [Fedora-commons-developers] Failed tests:
> testParseDate(org.fcrepo.server.utilities.TestDateUtility)
> 
> Huân,
> 
> Could you insert a print statement at line 90 to see which date string is
> causing the problem? e.g.:
> 
>         for (String element : dates) {
> +            System.out.println("parsing: " + element);
>             assertEquals(EPOCH, DateUtility.parseDateAsUTC(element));
>         }
> 
> And re-run the test and report back the date string that's causing the
> problem.
> 
> Eddie
> 
> 
> On 25 May 2010, at 3:38 PM, Huân Thebault wrote:
> 
>> Hello developpers
>> 
>> I’m trying to build fedora (trunk) from sources, but I get this :
>> 
>> …
>> Results :
>> 
>> Failed tests:
>>  testParseDate(org.fcrepo.server.utilities.TestDateUtility)
>> 
>> Tests run: 314, Failures: 1, Errors: 0, Skipped: 0
>> 
>> [INFO]
> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] Fedora Repository Project ......................... SUCCESS
> [1.328s]
>> [INFO] Fedora Generate Library ........................... SUCCESS
> [1.156s]
>> [INFO] Fedora Common Library ............................. SUCCESS
> [10.000s]
>> [INFO] Fedora Server Library ............................. FAILURE
> [1:36.204s]
>> [INFO] All Fedora Clients ................................ SKIPPED
>> [INFO] Fedora Admin Client (Swing) ....................... SKIPPED
>> [INFO] Fedora Messaging Client Library ................... SKIPPED
>> [INFO] Fedora Security Modules ........................... SKIPPED
>> [INFO] Fedora Security PDP ............................... SKIPPED
>> [INFO] Fedora Integration Test ........................... SKIPPED
>> [INFO] All Fedora Webapps ................................ SKIPPED
>> [INFO] Fedora Webapp - Demo Content ...................... SKIPPED
>> [INFO] Fedora Webapp - Formatting Objects Processor ...... SKIPPED
>> [INFO] Fedora Webapp - Saxon XSLT Processor .............. SKIPPED
>> [INFO] Fedora Webapp - Image Manipulation ................ SKIPPED
>> [INFO] Fedora JAAS Authentication ........................ SKIPPED
>> [INFO] Fedora Security PEP ............................... SKIPPED
>> [INFO] Fedora Webapp ..................................... SKIPPED
>> [INFO] Fedora Installer .................................. SKIPPED
>> [INFO]
> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
> ------------------------------------------------------------------------
>> [INFO] Total time: 1:48.969s
>> [INFO] Finished at: Tue May 25 18:25:56 PKT 2010
>> [INFO] Final Memory: 20M/56M
>> [INFO]
> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.4.2:test (default-test)
on
> project fcrepo-server: There are test failures.
>> 
>> 
>> 
>> And in org.fcrepo.server.utilities.TestDateUtility.txt I can see :
>> 
>> 
>
----------------------------------------------------------------------------
> ---
>> Test set: org.fcrepo.server.utilities.TestDateUtility
>> 
>
----------------------------------------------------------------------------
> ---
>> Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
> <<< FAILURE!
>> testParseDate(org.fcrepo.server.utilities.TestDateUtility)  Time elapsed:
> 0 sec  <<< FAILURE!
>> junit.framework.AssertionFailedError: expected:<Thu Jan 01 05:00:00 PKT
> 1970> but was:<null>
>>                at junit.framework.Assert.fail(Assert.java:47)
>>                at junit.framework.Assert.failNotEquals(Assert.java:277)
>>                at junit.framework.Assert.assertEquals(Assert.java:64)
>>                at junit.framework.Assert.assertEquals(Assert.java:71)
>>                at
>
org.fcrepo.server.utilities.TestDateUtility.testParseDate(TestDateUtility.ja
> va:90)
>> …
>> 
>> I’m using windows and I’ve followed this guide :
>
http://www.fedora-commons.org/confluence/pages/viewpage.action?pageId=137656
> 55 to configure eclipse with maven
>> 
>> Any help would be highly appreciated !
>> 
>> -----
>> Huân Thebault
>> Centre de Calcul de l'IN2P3
>> Development Team
>> Tel. Std          +33 4 78 93 08 80
>> 
>> 
>
----------------------------------------------------------------------------
> --
>> 
>> _______________________________________________
>> Fedora-commons-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
> 
> 
> 
> 
>
----------------------------------------------------------------------------
--
> 
> _______________________________________________
> Fedora-commons-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers




------------------------------------------------------------------------------

_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers

Reply via email to