|
31 | 31 | import org.springframework.boot.SpringApplication;
|
32 | 32 | import org.springframework.boot.autoconfigure.thymeleaf.ThymeleafAutoConfiguration;
|
33 | 33 | import org.springframework.boot.autoconfigure.web.ResourceProperties;
|
34 |
| -import org.springframework.boot.devtools.autoconfigure.RestartCompatibleRedisSerializerConfigurer.RestartCompatibleRedisSerializer; |
35 | 34 | import org.springframework.boot.devtools.classpath.ClassPathChangedEvent;
|
36 | 35 | import org.springframework.boot.devtools.classpath.ClassPathFileSystemWatcher;
|
37 | 36 | import org.springframework.boot.devtools.filewatch.ChangedFiles;
|
@@ -235,31 +234,6 @@ public void watchingAdditionalPaths() throws Exception {
|
235 | 234 | .containsKey(new File("src/test/java").getAbsoluteFile());
|
236 | 235 | }
|
237 | 236 |
|
238 |
| - @Test |
239 |
| - public void sessionRedisTemplateIsConfiguredWithCustomDeserializers() |
240 |
| - throws Exception { |
241 |
| - sessionRedisTemplateIsConfiguredWithCustomDeserializers( |
242 |
| - SessionRedisTemplateConfig.class); |
243 |
| - } |
244 |
| - |
245 |
| - private void sessionRedisTemplateIsConfiguredWithCustomDeserializers( |
246 |
| - Object sessionConfig) throws Exception { |
247 |
| - SpringApplication application = new SpringApplication(sessionConfig, |
248 |
| - LocalDevToolsAutoConfiguration.class); |
249 |
| - application.setWebEnvironment(false); |
250 |
| - this.context = application.run(); |
251 |
| - RedisTemplate<?, ?> redisTemplate = this.context.getBean("sessionRedisTemplate", |
252 |
| - RedisTemplate.class); |
253 |
| - assertThat(redisTemplate.getHashKeySerializer()) |
254 |
| - .isInstanceOf(RestartCompatibleRedisSerializer.class); |
255 |
| - assertThat(redisTemplate.getHashValueSerializer()) |
256 |
| - .isInstanceOf(RestartCompatibleRedisSerializer.class); |
257 |
| - assertThat(redisTemplate.getKeySerializer()) |
258 |
| - .isInstanceOf(RestartCompatibleRedisSerializer.class); |
259 |
| - assertThat(redisTemplate.getValueSerializer()) |
260 |
| - .isInstanceOf(RestartCompatibleRedisSerializer.class); |
261 |
| - } |
262 |
| - |
263 | 237 | private ConfigurableApplicationContext initializeAndRun(Class<?> config,
|
264 | 238 | String... args) {
|
265 | 239 | return initializeAndRun(config, Collections.<String, Object>emptyMap(), args);
|
|
0 commit comments