From 54129eefe381e97dce237e75ba43cd4e3ce103ca Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Tue, 28 May 2019 18:53:11 +0200 Subject: [PATCH] Fix gradle plugin build --- .../tasks/buildinfo/BuildInfoIntegrationTests.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java index ec67abcad20e..7b560c7aabd1 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/buildinfo/BuildInfoIntegrationTests.java @@ -96,8 +96,9 @@ public void notUpToDateWhenExecutedTwiceWithFixedTimeAndChangedProjectVersion() } @TestTemplate - public void reproducibleOutputWithFixedTime() throws InvalidRunnerConfigurationException, - UnexpectedBuildFailure, IOException, InterruptedException { + public void reproducibleOutputWithFixedTime() + throws InvalidRunnerConfigurationException, UnexpectedBuildFailure, + IOException, InterruptedException { assertThat(this.gradleBuild.build("buildInfo", "-PnullTime").task(":buildInfo") .getOutcome()).isEqualTo(TaskOutcome.SUCCESS); File buildInfoProperties = new File(this.gradleBuild.getProjectDir(), @@ -105,8 +106,8 @@ public void reproducibleOutputWithFixedTime() throws InvalidRunnerConfigurationE String firstHash = FileUtils.sha1Hash(buildInfoProperties); assertThat(buildInfoProperties.delete()).isTrue(); Thread.sleep(1500); - assertThat(this.gradleBuild.build("buildInfo", "-PnullTime") - .task(":buildInfo").getOutcome()).isEqualTo(TaskOutcome.SUCCESS); + assertThat(this.gradleBuild.build("buildInfo", "-PnullTime").task(":buildInfo") + .getOutcome()).isEqualTo(TaskOutcome.SUCCESS); String secondHash = FileUtils.sha1Hash(buildInfoProperties); assertThat(firstHash).isEqualTo(secondHash); }