Skip to content

Commit 6bea217

Browse files
committed
Switch tests to properties that are not deprecated
Closes gh-29488
1 parent ee9c399 commit 6bea217

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ElasticsearchRepositoriesAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2020 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -55,7 +55,7 @@ class ElasticsearchRepositoriesAutoConfigurationTests {
5555
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
5656
.withConfiguration(AutoConfigurations.of(ElasticsearchRestClientAutoConfiguration.class,
5757
ElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class))
58-
.withPropertyValues("spring.elasticsearch.rest.uris=" + elasticsearch.getHttpHostAddress());
58+
.withPropertyValues("spring.elasticsearch.uris=" + elasticsearch.getHttpHostAddress());
5959

6060
@Test
6161
void testDefaultRepositoryConfiguration() {

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/elasticsearch/ReactiveElasticsearchRepositoriesAutoConfigurationTests.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2021 the original author or authors.
2+
* Copyright 2012-2022 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.
@@ -55,9 +55,8 @@ class ReactiveElasticsearchRepositoriesAutoConfigurationTests {
5555
.withConfiguration(AutoConfigurations.of(ReactiveElasticsearchRestClientAutoConfiguration.class,
5656
ReactiveElasticsearchRepositoriesAutoConfiguration.class, ElasticsearchDataAutoConfiguration.class))
5757
.withPropertyValues(
58-
"spring.data.elasticsearch.client.reactive.endpoints=" + elasticsearch.getHost() + ":"
59-
+ elasticsearch.getFirstMappedPort(),
60-
"spring.data.elasticsearch.client.reactive.socket-timeout=30s");
58+
"spring.elasticsearch.uris=" + elasticsearch.getHost() + ":" + elasticsearch.getFirstMappedPort(),
59+
"spring.elasticsearch.socket-timeout=30s");
6160

6261
@Test
6362
void testDefaultRepositoryConfiguration() {

0 commit comments

Comments
 (0)