Skip to content

Commit 7acbc28

Browse files
committed
Merge branch 'fix-issue-2148-reload' into fix-issue-2148-reload-main
2 parents 95e310b + 73d8f91 commit 7acbc28

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/commons/config/reload/ConfigReloadUtilTests.java renamed to spring-cloud-kubernetes-client-config/src/test/java/org/springframework/cloud/kubernetes/commons/config/reload/KubernetesClientConfigReloadUtilTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
/**
5151
* @author wind57
5252
*/
53-
class ConfigReloadUtilTests {
53+
class KubernetesClientConfigReloadUtilTests {
5454

5555
private static final V1ConfigMapList CONFIGMAP_LIST = new V1ConfigMapListBuilder().build();
5656

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/commons/config/reload/ConfigReloadUtilTests.java renamed to spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/commons/config/reload/Fabric8ConfigReloadUtilTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
* @author wind57
3939
*/
4040
@EnableKubernetesMockClient(crud = true, https = false)
41-
class ConfigReloadUtilTests {
41+
class Fabric8ConfigReloadUtilTests {
4242

4343
private static KubernetesClient kubernetesClient;
4444

spring-cloud-kubernetes-fabric8-config/src/test/java/org/springframework/cloud/kubernetes/fabric8/config/Fabric8ConfigMapPropertySourceProvider.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424
import org.springframework.mock.env.MockEnvironment;
2525

2626
/**
27-
* Only needed to get a hold of {@link Fabric8ConfigMapPropertySource}.
27+
* Only needed to get a hold of {@link Fabric8ConfigMapPropertySource}. Since the
28+
* constructor of that class is not public, we create this provider ( in the same package
29+
* as Fabric8ConfigMapPropertySource ), so that we could access it. It is only needed for
30+
* tests, so that we don't have to change the visibility of the constructor.
2831
*
2932
* @author wind57
3033
*/

0 commit comments

Comments
 (0)