Skip to content

Commit

Permalink
update test to reference the same resource which is "download"
Browse files Browse the repository at this point in the history
  • Loading branch information
lkerford committed Jan 29, 2025
1 parent b89889d commit 0816bba
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ void addWrapperWithCustomDistributionUri() {
.setLargeFileHttpSender(customDistributionHost);
rewriteRun(
spec -> spec
.recipe(new UpdateGradleWrapper(null, null, null, "https://company.com/repo/gradle-8.0.2-bin.zip", null))
.recipe(new UpdateGradleWrapper(null, null, null, "https://company.com/repo/gradle-8.10-bin.zip", null))
.expectedCyclesThatMakeChanges(1)
.executionContext(ctx)
.afterRecipe(run -> {
Expand All @@ -648,7 +648,7 @@ void addWrapperWithCustomDistributionUri() {

var gradleWrapperJar = result(run, RemoteArchive.class, "gradle-wrapper.jar");
assertThat(gradleWrapperJar.getSourcePath()).isEqualTo(WRAPPER_JAR_LOCATION);
assertThat(gradleWrapperJar.getUri()).isEqualTo(URI.create("https://company.com/repo/gradle-8.0.2-bin.zip"));
assertThat(gradleWrapperJar.getUri()).isEqualTo(URI.create("https://company.com/repo/gradle-8.10-bin.zip"));
assertThat(isValidWrapperJar(gradleWrapperJar)).as("Wrapper jar is not valid").isTrue();
}),
buildGradle(
Expand All @@ -675,7 +675,7 @@ void addWrapperWithCustomDistributionUriAndDistributionChecksum() {
.setLargeFileHttpSender(customDistributionHost);
rewriteRun(
spec -> spec
.recipe(new UpdateGradleWrapper(null, null, null, "https://company.com/repo/gradle-8.0.2-bin.zip", wrapperJarChecksum))
.recipe(new UpdateGradleWrapper(null, null, null, "https://company.com/repo/gradle-8.10-bin.zip", wrapperJarChecksum))
.expectedCyclesThatMakeChanges(1)
.executionContext(ctx)
.afterRecipe(run -> {
Expand Down

0 comments on commit 0816bba

Please sign in to comment.