From 585ab03da6b626fe50f27931d0a6e48f3eb2860d Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 8 Mar 2022 13:54:12 -0800 Subject: [PATCH] Remove declared Apache Geode logging configuration in GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests. Format source code; optimize imports. Edit Javadoc. --- ...atorAutoConfigurationIntegrationTests.java | 29 ++++++++++++------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/spring-geode-project/spring-geode-actuator-autoconfigure/src/test/java/org/springframework/geode/boot/actuate/autoconfigure/GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests.java b/spring-geode-project/spring-geode-actuator-autoconfigure/src/test/java/org/springframework/geode/boot/actuate/autoconfigure/GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests.java index 7fdcad9c..8f00c133 100644 --- a/spring-geode-project/spring-geode-actuator-autoconfigure/src/test/java/org/springframework/geode/boot/actuate/autoconfigure/GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests.java +++ b/spring-geode-project/spring-geode-actuator-autoconfigure/src/test/java/org/springframework/geode/boot/actuate/autoconfigure/GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests.java @@ -13,7 +13,6 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package org.springframework.geode.boot.actuate.autoconfigure; import static org.assertj.core.api.Assertions.assertThat; @@ -22,13 +21,15 @@ import static org.mockito.Mockito.when; import java.util.Map; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.Cache; import org.apache.geode.cache.server.CacheServer; import org.apache.geode.cache.server.ServerLoad; import org.apache.geode.cache.server.ServerLoadProbe; import org.apache.geode.cache.server.ServerMetrics; -import org.junit.Test; -import org.junit.runner.RunWith; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.ApplicationRunner; @@ -47,9 +48,22 @@ import org.springframework.geode.boot.actuate.health.support.ActuatorServerLoadP import org.springframework.test.context.junit4.SpringRunner; /** - * The GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests class... + * Integration Tests for the auto-configuration of Apache Geode's {@link GeodeCacheServersHealthIndicator}.d * * @author John Blum + * @see org.junit.Test + * @see org.mockito.Mockito + * @see org.apache.geode.cache.Cache + * @see org.apache.geode.cache.server.CacheServer + * @see org.springframework.boot.autoconfigure.SpringBootApplication + * @see org.springframework.boot.test.context.SpringBootTest + * @see org.springframework.data.gemfire.config.annotation.PeerCacheApplication + * @see org.springframework.data.gemfire.server.CacheServerFactoryBean + * @see org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport + * @see org.springframework.data.gemfire.tests.mock.CacheServerMockObjects + * @see org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects + * @see org.springframework.geode.boot.actuate.GeodeCacheServersHealthIndicator + * @see org.springframework.test.context.junit4.SpringRunner * @since 1.0.0 */ @RunWith(SpringRunner.class) @@ -57,8 +71,6 @@ import org.springframework.test.context.junit4.SpringRunner; @SuppressWarnings("unused") public class GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests extends IntegrationTestsSupport { - private static final String GEODE_LOG_LEVEL = "error"; - @Autowired private GeodeCacheServersHealthIndicator healthIndicator; @@ -88,10 +100,7 @@ public class GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests ex @SpringBootApplication @EnableGemFireMockObjects - @PeerCacheApplication( - name = "GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests", - logLevel = GEODE_LOG_LEVEL - ) + @PeerCacheApplication(name = "GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests") static class TestConfiguration { @Bean("MockCacheServer")