Skip to content

Commit 1eaa547

Browse files
committed
Merge pull request #46973 from quaff
* pr/46973: Fix typo Closes gh-46973
2 parents 24a23c4 + f547bc2 commit 1eaa547

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection/ConnectionNamePredicateTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class ConnectionNamePredicateTests {
3737

3838
@Test
39-
void offical() {
39+
void official() {
4040
assertThat(predicateOf("elasticsearch")).accepts(sourceOf("elasticsearch"));
4141
assertThat(predicateOf("elasticsearch")).accepts(sourceOf("library/elasticsearch"));
4242
assertThat(predicateOf("elasticsearch")).accepts(sourceOf("docker.io/library/elasticsearch"));
@@ -85,15 +85,15 @@ private Predicate<DockerComposeConnectionSource> predicateOf(String... required)
8585
return new ConnectionNamePredicate(required);
8686
}
8787

88-
private DockerComposeConnectionSource sourceOf(String connectioName) {
89-
return sourceOf(connectioName, null);
88+
private DockerComposeConnectionSource sourceOf(String connectionName) {
89+
return sourceOf(connectionName, null);
9090
}
9191

92-
private DockerComposeConnectionSource sourceOf(String connectioName, String label) {
92+
private DockerComposeConnectionSource sourceOf(String connectionName, String label) {
9393
DockerComposeConnectionSource source = mock(DockerComposeConnectionSource.class);
9494
RunningService runningService = mock(RunningService.class);
9595
given(source.getRunningService()).willReturn(runningService);
96-
given(runningService.image()).willReturn(ImageReference.of(connectioName));
96+
given(runningService.image()).willReturn(ImageReference.of(connectionName));
9797
if (label != null) {
9898
given(runningService.labels()).willReturn(Map.of("org.springframework.boot.service-connection", label));
9999
}

0 commit comments

Comments
 (0)