From 3db70783d295ab9893414eeb7287c676818faf4b Mon Sep 17 00:00:00 2001 From: Sandesh <30489233+j-sandy@users.noreply.github.com> Date: Sat, 3 Aug 2024 00:15:10 +0530 Subject: [PATCH] chore(dependency): add explicit assertj-core dependency while spockframework upgrade to 2.2-groovy-3.0 (#4770) While upgrading spockframework from 2.0-groovy-3.0 to 2.2-groovy-3.0, encountered below errors during test execution of orca-mine module: ``` /orca/orca-mine/src/test/java/com/netflix/spinnaker/orca/mine/tasks/RegisterCanaryTaskTest.java:22: error: package org.assertj.core.api does not exist import static org.assertj.core.api.Assertions.assertThatThrownBy; ^ /orca/orca-mine/src/test/java/com/netflix/spinnaker/orca/mine/tasks/RegisterCanaryTaskTest.java:150: error: cannot find symbol assertThatThrownBy(() -> registerCanaryTask.execute(deployCanaryStage)) ^ symbol: method assertThatThrownBy(()->regist[...]tage)) location: class RegisterCanaryTaskTest ``` To fix this issue added assertj-core dependency explicitly. --- orca-mine/orca-mine.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/orca-mine/orca-mine.gradle b/orca-mine/orca-mine.gradle index b0b03e4010..1b62bf73ac 100644 --- a/orca-mine/orca-mine.gradle +++ b/orca-mine/orca-mine.gradle @@ -27,6 +27,7 @@ dependencies { implementation("io.spinnaker.kork:kork-retrofit") testImplementation("org.junit.jupiter:junit-jupiter-params") + testImplementation("org.assertj:assertj-core") testImplementation("com.github.tomakehurst:wiremock-jre8-standalone") }