forked from spring-projects/spring-boot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
* Copyright 2012-2023 the original author or authors. | ||
* Copyright 2012-2024 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -61,9 +61,9 @@ void resolveWhenFilePathReturnsBuildpack() throws Exception { | |
@Test | ||
void resolveWhenFileUrlReturnsBuildpack() throws Exception { | ||
Path compressedArchive = this.testTarGzip.createArchive(); | ||
BuildpackReference reference = BuildpackReference.of("file://" + compressedArchive.toString()); | ||
BuildpackReference reference = BuildpackReference.of(compressedArchive.toUri().toString()); | ||
Buildpack buildpack = TarGzipBuildpack.resolve(this.resolverContext, reference); | ||
assertThat(buildpack).isNotNull(); | ||
assertThat(buildpack).as("Buildpack %s resolved from reference %s", buildpack, reference).isNotNull(); | ||
assertThat(buildpack.getCoordinates()).hasToString("example/[email protected]"); | ||
this.testTarGzip.assertHasExpectedLayers(buildpack); | ||
} | ||
|