Browse Source

Mock property source name

pull/826/head
spencergibb 5 years ago
parent
commit
7c6c32cb87
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 1
      spring-cloud-context/src/test/java/org/springframework/cloud/bootstrap/encrypt/EnvironmentDecryptApplicationInitializerTests.java

1
spring-cloud-context/src/test/java/org/springframework/cloud/bootstrap/encrypt/EnvironmentDecryptApplicationInitializerTests.java

@ -187,6 +187,7 @@ public class EnvironmentDecryptApplicationInitializerTests { @@ -187,6 +187,7 @@ public class EnvironmentDecryptApplicationInitializerTests {
Collections.singletonMap("key", "{cipher}value2"));
CompositePropertySource cps = mock(CompositePropertySource.class);
when(cps.getName()).thenReturn("mockpropertysource");
when(cps.getPropertyNames()).thenReturn(devProfile.getPropertyNames());
when(cps.getPropertySources())
.thenReturn(Arrays.asList(devProfile, defaultProfile));

Loading…
Cancel
Save