|
13 | 13 | * or implied. See the License for the specific language governing |
14 | 14 | * permissions and limitations under the License. |
15 | 15 | */ |
16 | | - |
17 | 16 | package org.springframework.geode.boot.actuate.autoconfigure; |
18 | 17 |
|
19 | 18 | import static org.assertj.core.api.Assertions.assertThat; |
|
22 | 21 |
|
23 | 22 | import java.util.Map; |
24 | 23 |
|
| 24 | +import org.junit.Test; |
| 25 | +import org.junit.runner.RunWith; |
| 26 | + |
25 | 27 | import org.apache.geode.cache.Cache; |
26 | 28 | import org.apache.geode.cache.server.CacheServer; |
27 | 29 | import org.apache.geode.cache.server.ServerLoad; |
28 | 30 | import org.apache.geode.cache.server.ServerLoadProbe; |
29 | 31 | import org.apache.geode.cache.server.ServerMetrics; |
30 | | -import org.junit.Test; |
31 | | -import org.junit.runner.RunWith; |
| 32 | + |
32 | 33 | import org.springframework.beans.factory.annotation.Autowired; |
33 | 34 | import org.springframework.beans.factory.annotation.Qualifier; |
34 | 35 | import org.springframework.boot.ApplicationRunner; |
|
47 | 48 | import org.springframework.test.context.junit4.SpringRunner; |
48 | 49 |
|
49 | 50 | /** |
50 | | - * The GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests class... |
| 51 | + * Integration Tests for the auto-configuration of Apache Geode's {@link GeodeCacheServersHealthIndicator}.d |
51 | 52 | * |
52 | 53 | * @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 |
53 | 67 | * @since 1.0.0 |
54 | 68 | */ |
55 | 69 | @RunWith(SpringRunner.class) |
56 | 70 | @SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE) |
57 | 71 | @SuppressWarnings("unused") |
58 | 72 | public class GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests extends IntegrationTestsSupport { |
59 | 73 |
|
60 | | - private static final String GEODE_LOG_LEVEL = "error"; |
61 | | - |
62 | 74 | @Autowired |
63 | 75 | private GeodeCacheServersHealthIndicator healthIndicator; |
64 | 76 |
|
@@ -88,10 +100,7 @@ public void mockCacheServerHealthCheckWithServerLoadDetails() { |
88 | 100 |
|
89 | 101 | @SpringBootApplication |
90 | 102 | @EnableGemFireMockObjects |
91 | | - @PeerCacheApplication( |
92 | | - name = "GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests", |
93 | | - logLevel = GEODE_LOG_LEVEL |
94 | | - ) |
| 103 | + @PeerCacheApplication(name = "GeodeCacheServerHealthIndicatorAutoConfigurationIntegrationTests") |
95 | 104 | static class TestConfiguration { |
96 | 105 |
|
97 | 106 | @Bean("MockCacheServer") |
|
0 commit comments