Mock property source name

This commit is contained in:
spencergibb
2020-07-31 15:04:39 -04:00
parent 63ce0d965c
commit 7c6c32cb87

View File

@@ -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));