Skip to content

Commit 585ab03

Browse files
committed
Remove declared Apache Geode logging configuration in GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests.
Format source code; optimize imports. Edit Javadoc.
1 parent 2883b14 commit 585ab03

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

spring-geode-project/spring-geode-actuator-autoconfigure/src/test/java/org/springframework/geode/boot/actuate/autoconfigure/GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests.java

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* or implied. See the License for the specific language governing
1414
* permissions and limitations under the License.
1515
*/
16-
1716
package org.springframework.geode.boot.actuate.autoconfigure;
1817

1918
import static org.assertj.core.api.Assertions.assertThat;
@@ -22,13 +21,15 @@
2221

2322
import java.util.Map;
2423

24+
import org.junit.Test;
25+
import org.junit.runner.RunWith;
26+
2527
import org.apache.geode.cache.Cache;
2628
import org.apache.geode.cache.server.CacheServer;
2729
import org.apache.geode.cache.server.ServerLoad;
2830
import org.apache.geode.cache.server.ServerLoadProbe;
2931
import org.apache.geode.cache.server.ServerMetrics;
30-
import org.junit.Test;
31-
import org.junit.runner.RunWith;
32+
3233
import org.springframework.beans.factory.annotation.Autowired;
3334
import org.springframework.beans.factory.annotation.Qualifier;
3435
import org.springframework.boot.ApplicationRunner;
@@ -47,18 +48,29 @@
4748
import org.springframework.test.context.junit4.SpringRunner;
4849

4950
/**
50-
* The GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests class...
51+
* Integration Tests for the auto-configuration of Apache Geode's {@link GeodeCacheServersHealthIndicator}.d
5152
*
5253
* @author John Blum
54+
* @see org.junit.Test
55+
* @see org.mockito.Mockito
56+
* @see org.apache.geode.cache.Cache
57+
* @see org.apache.geode.cache.server.CacheServer
58+
* @see org.springframework.boot.autoconfigure.SpringBootApplication
59+
* @see org.springframework.boot.test.context.SpringBootTest
60+
* @see org.springframework.data.gemfire.config.annotation.PeerCacheApplication
61+
* @see org.springframework.data.gemfire.server.CacheServerFactoryBean
62+
* @see org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport
63+
* @see org.springframework.data.gemfire.tests.mock.CacheServerMockObjects
64+
* @see org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects
65+
* @see org.springframework.geode.boot.actuate.GeodeCacheServersHealthIndicator
66+
* @see org.springframework.test.context.junit4.SpringRunner
5367
* @since 1.0.0
5468
*/
5569
@RunWith(SpringRunner.class)
5670
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
5771
@SuppressWarnings("unused")
5872
public class GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests extends IntegrationTestsSupport {
5973

60-
private static final String GEODE_LOG_LEVEL = "error";
61-
6274
@Autowired
6375
private GeodeCacheServersHealthIndicator healthIndicator;
6476

@@ -88,10 +100,7 @@ public void mockCacheServerHealthCheckWithServerLoadDetails() {
88100

89101
@SpringBootApplication
90102
@EnableGemFireMockObjects
91-
@PeerCacheApplication(
92-
name = "GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests",
93-
logLevel = GEODE_LOG_LEVEL
94-
)
103+
@PeerCacheApplication(name = "GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests")
95104
static class TestConfiguration {
96105

97106
@Bean("MockCacheServer")

0 commit comments

Comments
 (0)