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.
1. Replace assertThat(x.isEmpty()).isTrue() with assertThat(x).isEmpty() Search for : assertThat\((.+).isEmpty\(\)\).isTrue\(\) Replace with : assertThat($1).isEmpty() Search for : assertThat\((.+).isEmpty\(\)\).isFalse\(\) Replace with : assertThat($1).isNotEmpty() 2. Replace assertThat(x.iterator().next()) with assertThat(x).element(0) Search for : assertThat\((.+).iterator\(\).next\(\)\) Replace with : assertThat($1).element(0) 3. Replace assertThat(x.get(i)). with assertThat(x).element(i). Search for : assertThat\((.+)\.get\((\d+)\)\)\. Replace with : assertThat($1).element($2).
- Loading branch information
Showing
29 changed files
with
110 additions
and
98 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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -57,7 +57,7 @@ void resolveAllWithBuilderBuildpackReferenceReturnsExpectedBuildpack() { | |
BuildpackReference reference = BuildpackReference.of("urn:cnb:builder:paketo-buildpacks/[email protected]"); | ||
Buildpacks buildpacks = BuildpackResolvers.resolveAll(this.resolverContext, Collections.singleton(reference)); | ||
assertThat(buildpacks.getBuildpacks()).hasSize(1); | ||
assertThat(buildpacks.getBuildpacks().get(0)).isInstanceOf(BuilderBuildpack.class); | ||
assertThat(buildpacks.getBuildpacks()).element(0).isInstanceOf(BuilderBuildpack.class); | ||
} | ||
|
||
@Test | ||
|
@@ -67,7 +67,7 @@ void resolveAllWithDirectoryBuildpackReferenceReturnsExpectedBuildpack(@TempDir | |
BuildpackReference reference = BuildpackReference.of(temp.toAbsolutePath().toString()); | ||
Buildpacks buildpacks = BuildpackResolvers.resolveAll(this.resolverContext, Collections.singleton(reference)); | ||
assertThat(buildpacks.getBuildpacks()).hasSize(1); | ||
assertThat(buildpacks.getBuildpacks().get(0)).isInstanceOf(DirectoryBuildpack.class); | ||
assertThat(buildpacks.getBuildpacks()).element(0).isInstanceOf(DirectoryBuildpack.class); | ||
} | ||
|
||
@Test | ||
|
@@ -77,7 +77,7 @@ void resolveAllWithTarGzipBuildpackReferenceReturnsExpectedBuildpack(@TempDir Fi | |
BuildpackReference reference = BuildpackReference.of(archive.toString()); | ||
Buildpacks buildpacks = BuildpackResolvers.resolveAll(this.resolverContext, Collections.singleton(reference)); | ||
assertThat(buildpacks.getBuildpacks()).hasSize(1); | ||
assertThat(buildpacks.getBuildpacks().get(0)).isInstanceOf(TarGzipBuildpack.class); | ||
assertThat(buildpacks.getBuildpacks()).element(0).isInstanceOf(TarGzipBuildpack.class); | ||
} | ||
|
||
@Test | ||
|
@@ -89,7 +89,7 @@ void resolveAllWithImageBuildpackReferenceReturnsExpectedBuildpack() throws IOEx | |
BuildpackReference reference = BuildpackReference.of("docker://example/buildpack1:latest"); | ||
Buildpacks buildpacks = BuildpackResolvers.resolveAll(resolverContext, Collections.singleton(reference)); | ||
assertThat(buildpacks.getBuildpacks()).hasSize(1); | ||
assertThat(buildpacks.getBuildpacks().get(0)).isInstanceOf(ImageBuildpack.class); | ||
assertThat(buildpacks.getBuildpacks()).element(0).isInstanceOf(ImageBuildpack.class); | ||
} | ||
|
||
@Test | ||
|
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
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
Oops, something went wrong.