Skip to content

Commit 4ca3c0f

Browse files
committed
fix test
Signed-off-by: wind57 <[email protected]>
1 parent 74c079c commit 4ca3c0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spring-cloud-kubernetes-commons/src/test/java/org/springframework/cloud/kubernetes/commons/configdata/KubernetesConfigDataLocationResolverTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ void testResolveProfileSpecificSix() {
289289
Mockito.when(RESOLVER_CONTEXT.getBinder()).thenReturn(binder);
290290
Mockito.when(RESOLVER_CONTEXT.getBootstrapContext()).thenReturn(new DefaultBootstrapContext());
291291

292+
Profiles profiles = Mockito.mock(Profiles.class);
293+
ConfigDataLocation configDataLocation = ConfigDataLocation.of("kubernetes:abc");
294+
storePropertiesResolver.resolveProfileSpecific(RESOLVER_CONTEXT,
295+
configDataLocation, profiles);
296+
292297
// on the other hand, @Default will be picked here
293298
Assertions.assertThat(storePropertiesResolver.configMapConfigProperties.enabled()).isTrue();
294299

0 commit comments

Comments
 (0)