File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
spring-boot-project/spring-boot-docker-compose/src/test/java/org/springframework/boot/docker/compose/service/connection Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 36
36
class ConnectionNamePredicateTests {
37
37
38
38
@ Test
39
- void offical () {
39
+ void official () {
40
40
assertThat (predicateOf ("elasticsearch" )).accepts (sourceOf ("elasticsearch" ));
41
41
assertThat (predicateOf ("elasticsearch" )).accepts (sourceOf ("library/elasticsearch" ));
42
42
assertThat (predicateOf ("elasticsearch" )).accepts (sourceOf ("docker.io/library/elasticsearch" ));
@@ -85,15 +85,15 @@ private Predicate<DockerComposeConnectionSource> predicateOf(String... required)
85
85
return new ConnectionNamePredicate (required );
86
86
}
87
87
88
- private DockerComposeConnectionSource sourceOf (String connectioName ) {
89
- return sourceOf (connectioName , null );
88
+ private DockerComposeConnectionSource sourceOf (String connectionName ) {
89
+ return sourceOf (connectionName , null );
90
90
}
91
91
92
- private DockerComposeConnectionSource sourceOf (String connectioName , String label ) {
92
+ private DockerComposeConnectionSource sourceOf (String connectionName , String label ) {
93
93
DockerComposeConnectionSource source = mock (DockerComposeConnectionSource .class );
94
94
RunningService runningService = mock (RunningService .class );
95
95
given (source .getRunningService ()).willReturn (runningService );
96
- given (runningService .image ()).willReturn (ImageReference .of (connectioName ));
96
+ given (runningService .image ()).willReturn (ImageReference .of (connectionName ));
97
97
if (label != null ) {
98
98
given (runningService .labels ()).willReturn (Map .of ("org.springframework.boot.service-connection" , label ));
99
99
}
You can’t perform that action at this time.
0 commit comments