From 76edaa7e1e22a8da8e25a2afa890a3967a0fd229 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Fri, 4 Mar 2016 17:30:00 +0100 Subject: [PATCH] Fix build Add TimeZone in date assertion --- .../autoconfigure/info/ProjectInfoAutoConfigurationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfigurationTests.java index 72ec269b37..d1080d25b1 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/info/ProjectInfoAutoConfigurationTests.java @@ -59,7 +59,7 @@ public class ProjectInfoAutoConfigurationTests { GitInfo gitInfo = this.context.getBean(GitInfo.class); assertThat(gitInfo.getBranch()).isNull(); assertThat(gitInfo.getCommit().getId()).isEqualTo("f95038e"); - assertThat(gitInfo.getCommit().getTime()).isEqualTo("2016-03-03T10:02:00"); + assertThat(gitInfo.getCommit().getTime()).isEqualTo("2016-03-03T10:02:00+0100"); } @Test @@ -68,7 +68,7 @@ public class ProjectInfoAutoConfigurationTests { GitInfo gitInfo = this.context.getBean(GitInfo.class); assertThat(gitInfo.getBranch()).isEqualTo("master"); assertThat(gitInfo.getCommit().getId()).isEqualTo("5009933"); - assertThat(gitInfo.getCommit().getTime()).isEqualTo("2016-03-04T16:04:10"); + assertThat(gitInfo.getCommit().getTime()).isEqualTo("2016-03-04T16:04:10+0100"); } @Test