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

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


The following commit(s) were added to refs/heads/master by this push:
     new dfa7ec7  CAMEL-12334: fix flaky test (2)
dfa7ec7 is described below

commit dfa7ec7952439c738b8c9f46c701d8378c7cd08c
Author: Zoran Regvart <[email protected]>
AuthorDate: Mon Mar 26 09:52:24 2018 +0200

    CAMEL-12334: fix flaky test (2)
    
    Change the timezone format in the test to match the formatter used in
    the code.
---
 .../component/salesforce/api/utils/SalesforceTimeFormatsTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/utils/SalesforceTimeFormatsTest.java
 
b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/utils/SalesforceTimeFormatsTest.java
index 53714f6..1ca5768 100644
--- 
a/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/utils/SalesforceTimeFormatsTest.java
+++ 
b/components/camel-salesforce/camel-salesforce-component/src/test/java/org/apache/camel/component/salesforce/api/utils/SalesforceTimeFormatsTest.java
@@ -163,7 +163,7 @@ public class SalesforceTimeFormatsTest {
         final ZonedDateTime zonedDateTime = 
ZonedDateTime.of(localDate.atTime(10, 54, 57), ZoneId.of("Z"));
         final Instant instant = zonedDateTime.toInstant();
 
-        final String zone = DateTimeFormatter.ofPattern("xx")
+        final String zone = DateTimeFormatter.ofPattern("XX")
             .format(zonedDateTime.withZoneSameLocal(ZoneId.systemDefault()));
 
         return Arrays.asList(//
@@ -180,7 +180,7 @@ public class SalesforceTimeFormatsTest {
             dto(zonedDateTime.withZoneSameInstant(ZoneId.of("+3")), 
"2007-03-19T13:54:57.000+0300"), // 9
             dto(instant,
                 instant.atZone(ZoneId.systemDefault())
-                    
.format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ"))), // 10
+                    
.format(DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXX"))), // 10
             dto(ZonedDateTime.of(2018, 03, 22, 9, 58, 8, 5000000, 
ZoneId.of("Z")), "2018-03-22T09:58:08.005Z"), // 11
             dto(OffsetTime.of(LocalTime.MIDNIGHT, ZoneOffset.UTC), 
"00:00:00.000Z"), // 12
             dto(OffsetTime.of(12, 13, 14, 7000000, ZoneOffset.UTC), 
"12:13:14.007Z") // 13

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to