camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 01/02: Fixed Test JacksonMarshalDateTimezoneTest in camel-jackson
Date Mon, 20 Nov 2017 08:57:46 GMT
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 <ancosen@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" <commits@camel.apache.org>.

Mime
View raw message