You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2017/11/20 08:57:46 UTC

[camel] 01/02: Fixed Test JacksonMarshalDateTimezoneTest in camel-jackson

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 18484ef2f905ca26033ef17979d2b4acfbe9e851
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Nov 20 09:54:55 2017 +0100

    Fixed Test JacksonMarshalDateTimezoneTest in camel-jackson
---
 .../camel/component/jackson/JacksonMarshalDateTimezoneTest.java     | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/JacksonMarshalDateTimezoneTest.java b/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/JacksonMarshalDateTimezoneTest.java
index 30457e8..26a0b81 100644
--- a/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/JacksonMarshalDateTimezoneTest.java
+++ b/components/camel-jackson/src/test/java/org/apache/camel/component/jackson/JacksonMarshalDateTimezoneTest.java
@@ -25,18 +25,20 @@ import org.apache.camel.component.mock.MockEndpoint;
 import org.apache.camel.test.junit4.CamelTestSupport;
 import org.junit.Test;
 
+
 public class JacksonMarshalDateTimezoneTest extends CamelTestSupport {
 
     @Test
     public void testMarshalDate() throws Exception {
+        TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
         GregorianCalendar in = new GregorianCalendar(2017, Calendar.APRIL, 25, 17, 0, 10);
 
         MockEndpoint mock = getMockEndpoint("mock:result");
 
         Object marshalled = template.requestBody("direct:in", in.getTime());
         String marshalledAsString = context.getTypeConverter().convertTo(String.class, marshalled);
-        assertEquals("1493132410000", marshalledAsString);
-
+        assertEquals("1493139610000", marshalledAsString);
+        
         mock.expectedMessageCount(1);
 
         mock.assertIsSatisfied();

-- 
To stop receiving notification emails like this one, please contact
"commits@camel.apache.org" <co...@camel.apache.org>.