Skip to content

Commit

Permalink
Use toURI to get URI string from Path
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Feb 28, 2024
1 parent f038e74 commit e39edf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ 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).as("Buildpack %s resolved from reference %s", buildpack, reference).isNotNull();
assertThat(buildpack.getCoordinates()).hasToString("example/[email protected]");
Expand Down

0 comments on commit e39edf5

Please sign in to comment.