Update to Boot 1.4 test utils

This commit is contained in:
Dave Syer
2016-08-18 16:44:39 +01:00
parent bc14b6e088
commit e1fcd3000a
4 changed files with 4 additions and 4 deletions

View File

@@ -18,8 +18,7 @@ package org.springframework.cloud.config.client;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.springframework.boot.test.EnvironmentTestUtils;
import org.springframework.cloud.config.client.ConfigClientProperties;
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.StandardEnvironment;

View File

@@ -34,5 +34,6 @@ public class ConfigClientWatchTests {
assertThat(watch.stateChanged("1", "2"), is(true));
assertThat(watch.stateChanged("1", null), is(true));
assertThat(watch.stateChanged("1", "1"), is(false));
watch.close();
}
}

View File

@@ -13,7 +13,7 @@ import org.junit.Test;
import org.junit.rules.ExpectedException;
import org.mockito.Matchers;
import org.mockito.Mockito;
import org.springframework.boot.test.EnvironmentTestUtils;
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.cloud.config.environment.Environment;
import org.springframework.core.env.ConfigurableEnvironment;
import org.springframework.core.env.StandardEnvironment;

View File

@@ -26,7 +26,7 @@ import org.junit.After;
import org.junit.Test;
import org.mockito.Mockito;
import org.springframework.boot.autoconfigure.PropertyPlaceholderAutoConfiguration;
import org.springframework.boot.test.EnvironmentTestUtils;
import org.springframework.boot.test.util.EnvironmentTestUtils;
import org.springframework.cloud.client.DefaultServiceInstance;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;