|
|
|
@ -26,7 +26,6 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
import com.google.common.collect.Lists;
|
|
|
|
|
import com.tencent.cloud.polaris.config.config.PolarisConfigProperties;
|
|
|
|
|
import com.tencent.cloud.polaris.config.enums.RefreshType;
|
|
|
|
|
import com.tencent.cloud.polaris.config.spring.property.PlaceholderHelper;
|
|
|
|
|
import com.tencent.cloud.polaris.config.spring.property.SpringValue;
|
|
|
|
|
import com.tencent.cloud.polaris.config.spring.property.SpringValueRegistry;
|
|
|
|
@ -73,7 +72,6 @@ public class PolarisPropertiesSourceAutoRefresherTest {
|
|
|
|
|
public void testConfigFileChanged() throws Exception {
|
|
|
|
|
PolarisReflectPropertySourceAutoRefresher refresher = new PolarisReflectPropertySourceAutoRefresher(polarisConfigProperties,
|
|
|
|
|
polarisPropertySourceManager, springValueRegistry, placeholderHelper);
|
|
|
|
|
when(polarisConfigProperties.getRefreshType()).thenReturn(RefreshType.REFLECT);
|
|
|
|
|
ConfigurableApplicationContext applicationContext = mock(ConfigurableApplicationContext.class);
|
|
|
|
|
ConfigurableListableBeanFactory beanFactory = mock(ConfigurableListableBeanFactory.class);
|
|
|
|
|
TypeConverter typeConverter = mock(TypeConverter.class);
|
|
|
|
|