Skip to content

Commit 3907fb9

Browse files
committed
Merge pull request #21009 from dreis2211
* pr/21009: Update copyright year of changed file Polish Closes gh-21009
2 parents 5b1b7bc + c7baf5f commit 3907fb9

File tree

35 files changed

+71
-71
lines changed

35 files changed

+71
-71
lines changed

buildSrc/src/main/java/org/springframework/boot/build/optional/OptionalDependenciesPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void apply(Project project) {
5858
.all((javadoc) -> javadoc.setClasspath(javadoc.getClasspath().plus(optional)));
5959
});
6060
project.getPlugins().withType(EclipsePlugin.class,
61-
(eclipePlugin) -> project.getExtensions().getByType(EclipseModel.class)
61+
(eclipsePlugin) -> project.getExtensions().getByType(EclipseModel.class)
6262
.classpath((classpath) -> classpath.getPlusConfigurations().add(optional)));
6363
}
6464

buildSrc/src/test/java/org/springframework/boot/build/bom/bomr/version/DependencyVersionTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void parseWhenReleaseTrainShouldReturnReleaseTrainDependencyVersion() {
3838
}
3939

4040
@Test
41-
void parseWhenMavenLikeVersionWithNumericQualifieShouldReturnNumericQualifierDependencyVersion() {
41+
void parseWhenMavenLikeVersionWithNumericQualifierShouldReturnNumericQualifierDependencyVersion() {
4242
assertThat(DependencyVersion.parse("1.2.3.4")).isInstanceOf(NumericQualifierDependencyVersion.class);
4343
}
4444

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/availability/AvailabilityProbesAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void probesWhenPropertyEnabledAddsBeans() {
6464
}
6565

6666
@Test
67-
void probesWhenKuberntesAndPropertyDisabledAddsNotBeans() {
67+
void probesWhenKubernetesAndPropertyDisabledAddsNotBeans() {
6868
this.contextRunner
6969
.withPropertyValues("spring.main.cloud-platform=kubernetes", "management.health.probes.enabled=false")
7070
.run((context) -> assertThat(context).hasSingleBean(ApplicationAvailability.class)

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/availability/AvailabilityProbesHealthEndpointGroupTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void showDetailsReturnsFalse() {
5656
}
5757

5858
@Test
59-
void getStatusAggregattorReturnsDefaultStatusAggregator() {
59+
void getStatusAggregatorReturnsDefaultStatusAggregator() {
6060
assertThat(this.group.getStatusAggregator()).isEqualTo(StatusAggregator.DEFAULT);
6161
}
6262

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/availability/AvailabilityProbesHealthEndpointGroupsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void getLivenessProbeHasOnlyLivenessStateAsMember() {
9696
}
9797

9898
@Test
99-
void getRedinessProbeHasOnlyReadinessStateAsMember() {
99+
void getReadinessProbeHasOnlyReadinessStateAsMember() {
100100
HealthEndpointGroups availabilityProbes = new AvailabilityProbesHealthEndpointGroups(this.delegate);
101101
HealthEndpointGroup probeGroup = availabilityProbes.get("readiness");
102102
assertThat(probeGroup.isMember("livenessState")).isFalse();

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/cloudfoundry/servlet/CloudFoundrySecurityServiceTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -76,7 +76,7 @@ void skipSslValidationWhenTrue() {
7676
}
7777

7878
@Test
79-
void doNotskipSslValidationWhenFalse() {
79+
void doNotSkipSslValidationWhenFalse() {
8080
RestTemplateBuilder builder = new RestTemplateBuilder();
8181
this.securityService = new CloudFoundrySecurityService(builder, CLOUD_CONTROLLER, false);
8282
RestTemplate restTemplate = (RestTemplate) ReflectionTestUtils.getField(this.securityService, "restTemplate");

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/health/AutoConfiguredHealthEndpointGroupsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void createWhenNoDefinedBeansAdaptsProperties() {
103103
}
104104

105105
@Test
106-
void createWhenHasStatusAggregatorBeanReturnsInstanceWithAgregatorUsedForAllGroups() {
106+
void createWhenHasStatusAggregatorBeanReturnsInstanceWithAggregatorUsedForAllGroups() {
107107
this.contextRunner.withUserConfiguration(CustomStatusAggregatorConfiguration.class)
108108
.withPropertyValues("management.endpoint.health.status.order=up,down",
109109
"management.endpoint.health.group.a.include=*")

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/health/HealthIndicatorRegistryInjectionIntegrationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ static class Config {
6161
MeterRegistry registry) {
6262
CompositeHealthIndicator healthIndicator = new CompositeHealthIndicator(healthAggregator,
6363
healthIndicatorRegistry);
64-
Gauge.builder("health", healthIndicator, this::getGuageValue)
64+
Gauge.builder("health", healthIndicator, this::getGaugeValue)
6565
.description("Spring boot health indicator. 3=UP, 2=OUT_OF_SERVICE, 1=DOWN, 0=UNKNOWN")
6666
.strongReference(true).register(registry);
6767
}
6868

69-
private double getGuageValue(CompositeHealthIndicator health) {
69+
private double getGaugeValue(CompositeHealthIndicator health) {
7070
Status status = health.health().getStatus();
7171
switch (status.getCode()) {
7272
case "UP":

spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/health/DefaultContributorRegistryTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -90,7 +90,7 @@ void registerContributorWhenContributorIsNullThrowsException() {
9090
}
9191

9292
@Test
93-
void registerContributorRegisteresContributors() {
93+
void registerContributorRegistersContributors() {
9494
this.registry.registerContributor("one", this.one);
9595
this.registry.registerContributor("two", this.two);
9696
assertThat(this.registry).hasSize(2);

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -396,7 +396,7 @@ void withAsyncBootstrappingAnApplicationListenerThatUsesJpaDoesNotTriggerABeanCu
396396
}
397397

398398
@Test
399-
void whenLocalContanerEntityManagerFactoryBeanHasNoJpaVendorAdapterAutoConfigurationSucceeds() {
399+
void whenLocalContainerEntityManagerFactoryBeanHasNoJpaVendorAdapterAutoConfigurationSucceeds() {
400400
contextRunner()
401401
.withUserConfiguration(
402402
TestConfigurationWithLocalContainerEntityManagerFactoryBeanWithNoJpaVendorAdapter.class)

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void accessLogDoesNotUseIpv6CanonicalFormatByDefault() {
468468
}
469469

470470
@Test
471-
void accessLogwithIpv6CanonicalSet() {
471+
void accessLogWithIpv6CanonicalSet() {
472472
bind("server.tomcat.accesslog.enabled=true", "server.tomcat.accesslog.ipv6-canonical=true");
473473
TomcatServletWebServerFactory factory = customizeAndGetFactory();
474474
assertThat(((AccessLogValve) factory.getEngineValves().iterator().next()).getIpv6Canonical()).isTrue();

spring-boot-project/spring-boot-cli/src/test/java/org/springframework/boot/cli/compiler/grape/AetherGrapeEngineTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AetherGrapeEngineTests {
5050
private final RepositoryConfiguration springMilestone = new RepositoryConfiguration("spring-milestone",
5151
URI.create("https://repo.spring.io/milestone"), false);
5252

53-
private final RepositoryConfiguration springSnaphot = new RepositoryConfiguration("spring-snapshot",
53+
private final RepositoryConfiguration springSnapshot = new RepositoryConfiguration("spring-snapshot",
5454
URI.create("https://repo.spring.io/snapshot"), true);
5555

5656
private AetherGrapeEngine createGrapeEngine(RepositoryConfiguration... additionalRepositories) {
@@ -67,7 +67,7 @@ private AetherGrapeEngine createGrapeEngine(RepositoryConfiguration... additiona
6767
@Test
6868
void dependencyResolution() {
6969
Map<String, Object> args = new HashMap<>();
70-
createGrapeEngine(this.springMilestone, this.springSnaphot).grab(args,
70+
createGrapeEngine(this.springMilestone, this.springSnapshot).grab(args,
7171
createDependency("org.springframework", "spring-jdbc", null));
7272
assertThat(this.groovyClassLoader.getURLs()).hasSize(5);
7373
}
@@ -107,7 +107,7 @@ void dependencyResolutionWithExclusions() {
107107
Map<String, Object> args = new HashMap<>();
108108
args.put("excludes", Arrays.asList(createExclusion("org.springframework", "spring-core")));
109109

110-
createGrapeEngine(this.springMilestone, this.springSnaphot).grab(args,
110+
createGrapeEngine(this.springMilestone, this.springSnapshot).grab(args,
111111
createDependency("org.springframework", "spring-jdbc", "3.2.4.RELEASE"),
112112
createDependency("org.springframework", "spring-beans", "3.2.4.RELEASE"));
113113

@@ -129,7 +129,7 @@ void dependencyResolutionWithCustomClassLoader() {
129129
GroovyClassLoader customClassLoader = new GroovyClassLoader();
130130
args.put("classLoader", customClassLoader);
131131

132-
createGrapeEngine(this.springMilestone, this.springSnaphot).grab(args,
132+
createGrapeEngine(this.springMilestone, this.springSnapshot).grab(args,
133133
createDependency("org.springframework", "spring-jdbc", null));
134134

135135
assertThat(this.groovyClassLoader.getURLs()).isEmpty();

spring-boot-project/spring-boot-docs/src/docs/asciidoc/appendix-executable-jar-format.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Spring Boot Loader-compatible jar and war archives can include additional index
9393
A `classpath.idx` file can be provided for both jars and wars, it provides the ordering that jars should be added to the classpath.
9494
The `layers.idx` file can be used only for jars, it allows a jar to be split into logical layers for Docker/OCI image creation.
9595

96-
Index files follow a YAML compatible syntax so that they can be eaily parsed by third-party tools.
96+
Index files follow a YAML compatible syntax so that they can be easily parsed by third-party tools.
9797
These files, however, are _not_ parsed internally as YAML and they must be written in exactly the formats described below in order to be used.
9898

9999

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ If a misconfigured bean is initialized lazily, a failure will no longer occur du
9393
Care must also be taken to ensure that the JVM has sufficient memory to accommodate all of the application's beans and not just those that are initialized during startup.
9494
For these reasons, lazy initialization is not enabled by default and it is recommended that fine-tuning of the JVM's heap size is done before enabling lazy initialization.
9595

96-
Lazy initialization can be enabled programatically using the `lazyInitialization` method on `SpringApplicationBuilder` or the `setLazyInitialization` method on `SpringApplication`.
96+
Lazy initialization can be enabled programmatically using the `lazyInitialization` method on `SpringApplicationBuilder` or the `setLazyInitialization` method on `SpringApplication`.
9797
Alternatively, it can be enabled using the configprop:spring.main.lazy-initialization[] property as shown in the following example:
9898

9999
[source,properties,indent=0,configprops]

spring-boot-project/spring-boot-test/src/test/java/org/springframework/boot/test/system/OutputCaptureTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -69,7 +69,7 @@ void pushWhenEmptyStartsCapture() {
6969
}
7070

7171
@Test
72-
void pushWhenHasExistingStartesNewCapture() {
72+
void pushWhenHasExistingStartsNewCapture() {
7373
System.out.print("A");
7474
this.output.push();
7575
System.out.print("B");

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/build/LifecycleTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void executeOnlyUploadsContentOnce() throws Exception {
102102
}
103103

104104
@Test
105-
void executeWhenAleadyRunThrowsException() throws Exception {
105+
void executeWhenAlreadyRunThrowsException() throws Exception {
106106
given(this.docker.container().create(any())).willAnswer(answerWithGeneratedContainerId());
107107
given(this.docker.container().create(any(), any())).willAnswer(answerWithGeneratedContainerId());
108108
given(this.docker.container().wait(any())).willReturn(ContainerStatus.of(0, null));
@@ -211,9 +211,9 @@ private IOConsumer<ContainerConfig> withExpectedConfig(String name) {
211211

212212
static class TestLifecycle extends Lifecycle {
213213

214-
TestLifecycle(BuildLog log, DockerApi docker, BuildRequest request, ImageReference runImageReferece,
214+
TestLifecycle(BuildLog log, DockerApi docker, BuildRequest request, ImageReference runImageReference,
215215
EphemeralBuilder builder) {
216-
super(log, docker, request, runImageReferece, builder);
216+
super(log, docker, request, runImageReference, builder);
217217
}
218218

219219
@Override

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void loadLoadsImage() throws Exception {
190190
}
191191

192192
@Test
193-
void removeWhenReferenceIsNulllThrowsException() {
193+
void removeWhenReferenceIsNullThrowsException() {
194194
assertThatIllegalArgumentException().isThrownBy(() -> this.api.remove(null, true))
195195
.withMessage("Reference must not be null");
196196
}

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/ProgressUpdateEventTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void getStatusReturnsStatus() {
3636
}
3737

3838
@Test
39-
void getProgressDetailsReturnsProgresssDetails() {
39+
void getProgressDetailsReturnsProgressDetails() {
4040
ProgressUpdateEvent event = createEvent();
4141
assertThat(event.getProgressDetail().getCurrent()).isEqualTo(1);
4242
assertThat(event.getProgressDetail().getTotal()).isEqualTo(2);

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/transport/HttpClientTransportTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ void deleteShouldExecuteHttpDelete() throws IOException {
177177
}
178178

179179
@Test
180-
void executeWhenResposeIsIn400RangeShouldThrowDockerException() throws IOException {
180+
void executeWhenResponseIsIn400RangeShouldThrowDockerException() throws IOException {
181181
given(this.entity.getContent()).willReturn(getClass().getResourceAsStream("errors.json"));
182182
given(this.statusLine.getStatusCode()).willReturn(404);
183183
assertThatExceptionOfType(DockerEngineException.class).isThrownBy(() -> this.http.get(this.uri))
184184
.satisfies((ex) -> assertThat(ex.getErrors()).hasSize(2));
185185
}
186186

187187
@Test
188-
void executeWhenResposeIsIn500RangeShouldThrowDockerException() {
188+
void executeWhenResponseIsIn500RangeShouldThrowDockerException() {
189189
given(this.statusLine.getStatusCode()).willReturn(500);
190190
assertThatExceptionOfType(DockerEngineException.class).isThrownBy(() -> this.http.get(this.uri))
191191
.satisfies((ex) -> assertThat(ex.getErrors()).isNull());

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/type/ImageConfigTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ void getEnvContainsParsedValues() throws Exception {
4545
@Test
4646
void getLabelsReturnsLabels() throws Exception {
4747
ImageConfig imageConfig = getImageConfig();
48-
Map<String, String> lables = imageConfig.getLabels();
49-
assertThat(lables).hasSize(4).contains(entry("io.buildpacks.stack.id", "org.cloudfoundry.stacks.cflinuxfs3"));
48+
Map<String, String> labels = imageConfig.getLabels();
49+
assertThat(labels).hasSize(4).contains(entry("io.buildpacks.stack.id", "org.cloudfoundry.stacks.cflinuxfs3"));
5050
}
5151

5252
@Test

spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/type/ImageTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ void getConfigEnvContainsParsedValues() throws Exception {
4646
@Test
4747
void getConfigLabelsReturnsLabels() throws Exception {
4848
Image image = getImage();
49-
Map<String, String> lables = image.getConfig().getLabels();
50-
assertThat(lables).contains(entry("io.buildpacks.stack.id", "org.cloudfoundry.stacks.cflinuxfs3"));
49+
Map<String, String> labels = image.getConfig().getLabels();
50+
assertThat(labels).contains(entry("io.buildpacks.stack.id", "org.cloudfoundry.stacks.cflinuxfs3"));
5151
}
5252

5353
@Test

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/tasks/bundling/BootJarTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void whenJarIsLayeredThenLayersIndexIsPresentAndCorrect() throws IOException {
129129
}
130130

131131
@Test
132-
void whenJarIsLayeredWithCustomStrategiesThenLayersIndexIsPresentAndCorrent() throws IOException {
132+
void whenJarIsLayeredWithCustomStrategiesThenLayersIndexIsPresentAndCorrect() throws IOException {
133133
File jar = createLayeredJar((layered) -> {
134134
layered.application((application) -> {
135135
application.intoLayer("resources", (spec) -> spec.include("static/**"));

spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/LayerToolsJarModeTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void restore() {
6868
}
6969

7070
@Test
71-
void mainWithNoParamersShowsHelp() {
71+
void mainWithNoParametersShowsHelp() {
7272
new LayerToolsJarMode().run("layertools", NO_ARGS);
7373
assertThat(this.out).hasSameContentAsResource("help-output.txt");
7474
}

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/jar/CentralDirectoryEndRecord.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2019 the original author or authors.
2+
* Copyright 2012-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -167,8 +167,8 @@ private static final class Zip64End {
167167

168168
private int numberOfRecords;
169169

170-
private Zip64End(RandomAccessData data, int centratDirectoryEndOffset) throws IOException {
171-
this(data, new Zip64Locator(data, centratDirectoryEndOffset));
170+
private Zip64End(RandomAccessData data, int centralDirectoryEndOffset) throws IOException {
171+
this(data, new Zip64Locator(data, centralDirectoryEndOffset));
172172
}
173173

174174
private Zip64End(RandomAccessData data, Zip64Locator locator) throws IOException {

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/intTest/java/org/springframework/boot/maven/JarIntegrationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ void whenADependencyHasSystemScopeItIsNotIncludedInTheRepackagedJar(MavenBuild m
238238
}
239239

240240
@TestTemplate
241-
void whenADependendencyHasTestScopeItIsNotIncludedInTheRepackagedJar(MavenBuild mavenBuild) {
241+
void whenADependencyHasTestScopeItIsNotIncludedInTheRepackagedJar(MavenBuild mavenBuild) {
242242
mavenBuild.project("jar-test-scope").execute((project) -> {
243243
File main = new File(project, "target/jar-test-scope-0.0.1.BUILD-SNAPSHOT.jar");
244244
assertThat(jar(main)).doesNotHaveEntryWithNameStartingWith("BOOT-INF/lib/log4j")

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/ImageTests.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ class ImageTests {
4141

4242
@Test
4343
void getBuildRequestWhenNameIsNullDeducesName() {
44-
BuildRequest request = new Image().getBuildRequest(createArtifact(), mockAplicationContent());
44+
BuildRequest request = new Image().getBuildRequest(createArtifact(), mockApplicationContent());
4545
assertThat(request.getName().toString()).isEqualTo("docker.io/library/my-app:0.0.1-SNAPSHOT");
4646
}
4747

4848
@Test
49-
void getBuildEquestWhenNameIsSetUsesName() {
49+
void getBuildRequestWhenNameIsSetUsesName() {
5050
Image image = new Image();
5151
image.name = "demo";
52-
BuildRequest request = image.getBuildRequest(createArtifact(), mockAplicationContent());
52+
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
5353
assertThat(request.getName().toString()).isEqualTo("docker.io/library/demo:latest");
5454
}
5555

5656
@Test
5757
void getBuildRequestWhenNoCustomizationsUsesDefaults() {
58-
BuildRequest request = new Image().getBuildRequest(createArtifact(), mockAplicationContent());
58+
BuildRequest request = new Image().getBuildRequest(createArtifact(), mockApplicationContent());
5959
assertThat(request.getName().toString()).isEqualTo("docker.io/library/my-app:0.0.1-SNAPSHOT");
6060
assertThat(request.getBuilder().toString()).contains("docker.io/cloudfoundry/cnb:bionic-platform-api");
6161
assertThat(request.getEnv()).isEmpty();
@@ -67,31 +67,31 @@ void getBuildRequestWhenNoCustomizationsUsesDefaults() {
6767
void getBuildRequestWhenHasBuilderUsesBuilder() {
6868
Image image = new Image();
6969
image.builder = "springboot/builder:2.2.x";
70-
BuildRequest request = image.getBuildRequest(createArtifact(), mockAplicationContent());
70+
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
7171
assertThat(request.getBuilder().toString()).isEqualTo("docker.io/springboot/builder:2.2.x");
7272
}
7373

7474
@Test
7575
void getBuildRequestWhenHasEnvUsesEnv() {
7676
Image image = new Image();
7777
image.env = Collections.singletonMap("test", "test");
78-
BuildRequest request = image.getBuildRequest(createArtifact(), mockAplicationContent());
78+
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
7979
assertThat(request.getEnv()).containsExactly(entry("test", "test"));
8080
}
8181

8282
@Test
8383
void getBuildRequestWhenHasCleanCacheUsesCleanCache() {
8484
Image image = new Image();
8585
image.cleanCache = true;
86-
BuildRequest request = image.getBuildRequest(createArtifact(), mockAplicationContent());
86+
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
8787
assertThat(request.isCleanCache()).isTrue();
8888
}
8989

9090
@Test
9191
void getBuildRequestWhenHasVerboseLoggingUsesVerboseLogging() {
9292
Image image = new Image();
9393
image.verboseLogging = true;
94-
BuildRequest request = image.getBuildRequest(createArtifact(), mockAplicationContent());
94+
BuildRequest request = image.getBuildRequest(createArtifact(), mockApplicationContent());
9595
assertThat(request.isVerboseLogging()).isTrue();
9696
}
9797

@@ -100,7 +100,7 @@ private Artifact createArtifact() {
100100
"jar", null, new DefaultArtifactHandler());
101101
}
102102

103-
private Function<Owner, TarArchive> mockAplicationContent() {
103+
private Function<Owner, TarArchive> mockApplicationContent() {
104104
return (owner) -> null;
105105
}
106106

0 commit comments

Comments
 (0)