You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2011/02/10 17:16:57 UTC

[jira] Commented: (STANBOL-72) enhancer.jersey.writers tests fail on Hudson

    [ https://issues.apache.org/jira/browse/STANBOL-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993101#comment-12993101 ] 

Bertrand Delacretaz commented on STANBOL-72:
--------------------------------------------

Looks like the timezone used to serialize Dates in triples is not in sync with the one used for tests, with the below patch the tests fail on my box as well.


Index: src/test/java/org/apache/stanbol/enhancer/jersey/writers/JsonLdSerializerProviderTest.java
===================================================================
--- src/test/java/org/apache/stanbol/enhancer/jersey/writers/JsonLdSerializerProviderTest.java	(revision 1069312)
+++ src/test/java/org/apache/stanbol/enhancer/jersey/writers/JsonLdSerializerProviderTest.java	(working copy)
@@ -158,7 +158,7 @@
         Calendar myCal = Calendar.getInstance();
         myCal.set(2010, 9, 27, 12, 0, 0);
         myCal.set(Calendar.MILLISECOND, 0);
-        myCal.setTimeZone(TimeZone.getTimeZone("Germany/Berlin"));
+        myCal.setTimeZone(TimeZone.getTimeZone("GMT+5"));
         testAnnotation.setCreated(myCal.getTime());


> enhancer.jersey.writers tests fail on Hudson
> --------------------------------------------
>
>                 Key: STANBOL-72
>                 URL: https://issues.apache.org/jira/browse/STANBOL-72
>             Project: Stanbol
>          Issue Type: Bug
>            Reporter: Bertrand Delacretaz
>            Assignee: Olivier Grisel
>            Priority: Minor
>
> Most or all of those tests fail with errors like
> org.junit.ComparisonFailure: expected:<
> expected":"\"2010-10-27T1[4:00:00+02]:00\"^^<http:\/\/www...> 
> but was:<...ted":"\"2010-10-27T1[2:00:00+00]:00\"^^<http:\/\/www...>
> Looks like a problem with timezones in the tests

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