Mock property source name
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user