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 3636class 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 }
You can’t perform that action at this time.
0 commit comments