Browse Source

Polishing

Closes gh-27429
pull/27453/head
Andy Wilkinson 5 years ago
parent
commit
c211c971f1
  1. 2
      spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/redis/RedisReactiveHealthIndicatorTests.java
  2. 4
      spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java

2
spring-boot-project/spring-boot-actuator/src/test/java/org/springframework/boot/actuate/redis/RedisReactiveHealthIndicatorTests.java

@ -95,8 +95,6 @@ class RedisReactiveHealthIndicatorTests {
@Test @Test
void healthWhenClusterStateIsFailShouldBeDown() { void healthWhenClusterStateIsFailShouldBeDown() {
Properties clusterProperties = new Properties();
clusterProperties.setProperty("cluster_state", "fail");
ReactiveRedisConnectionFactory redisConnectionFactory = createClusterConnectionFactory("fail"); ReactiveRedisConnectionFactory redisConnectionFactory = createClusterConnectionFactory("fail");
RedisReactiveHealthIndicator healthIndicator = new RedisReactiveHealthIndicator(redisConnectionFactory); RedisReactiveHealthIndicator healthIndicator = new RedisReactiveHealthIndicator(redisConnectionFactory);
Mono<Health> health = healthIndicator.health(); Mono<Health> health = healthIndicator.health();

4
spring-boot-project/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/env/DevToolsHomePropertiesPostProcessorTests.java vendored

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2020 the original author or authors. * Copyright 2012-2021 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -84,8 +84,6 @@ class DevToolsHomePropertiesPostProcessorTests {
Properties properties = new Properties(); Properties properties = new Properties();
properties.put("uvw", "xyz"); properties.put("uvw", "xyz");
writeFile(properties, this.customHome, ".config/spring-boot/spring-boot-devtools.properties"); writeFile(properties, this.customHome, ".config/spring-boot/spring-boot-devtools.properties");
Properties systemProperties = new Properties();
systemProperties.setProperty("spring.devtools.home", this.customHome.getAbsolutePath());
ConfigurableEnvironment environment = getPostProcessedEnvironment( ConfigurableEnvironment environment = getPostProcessedEnvironment(
Collections.singletonMap("SPRING_DEVTOOLS_HOME", this.customHome.getAbsolutePath())); Collections.singletonMap("SPRING_DEVTOOLS_HOME", this.customHome.getAbsolutePath()));
assertThat(environment.getProperty("uvw")).isEqualTo("xyz"); assertThat(environment.getProperty("uvw")).isEqualTo("xyz");

Loading…
Cancel
Save