diff --git a/spring-geode-autoconfigure/src/test/java/example/app/books/model/Author.java b/spring-geode-autoconfigure/src/test/java/example/app/books/model/Author.java index 255be64c..8d2e8a78 100644 --- a/spring-geode-autoconfigure/src/test/java/example/app/books/model/Author.java +++ b/spring-geode-autoconfigure/src/test/java/example/app/books/model/Author.java @@ -15,13 +15,13 @@ */ package example.app.books.model; +import org.springframework.data.annotation.Id; +import org.springframework.data.gemfire.mapping.annotation.Region; + import lombok.Data; import lombok.NonNull; import lombok.RequiredArgsConstructor; -import org.springframework.data.annotation.Id; -import org.springframework.data.gemfire.mapping.annotation.Region; - /** * The {@link Author} class is an Abstract Data Type (ADT) modeling a book author. * diff --git a/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoClientConfiguration.java b/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoClientConfiguration.java index b0d11bc8..2f01fd4f 100644 --- a/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoClientConfiguration.java +++ b/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoClientConfiguration.java @@ -13,13 +13,13 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package example.echo.config; import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.cache.client.ClientRegionShortcut; + import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.gemfire.GemfireTemplate; diff --git a/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoServerConfiguration.java b/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoServerConfiguration.java index 2556f8d3..694d6c36 100644 --- a/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoServerConfiguration.java +++ b/spring-geode-autoconfigure/src/test/java/example/echo/config/EchoServerConfiguration.java @@ -13,12 +13,12 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package example.echo.config; import org.apache.geode.cache.Cache; import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; + import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.gemfire.GemfireTemplate; diff --git a/spring-geode-autoconfigure/src/test/java/example/geode/cache/EchoCacheLoader.java b/spring-geode-autoconfigure/src/test/java/example/geode/cache/EchoCacheLoader.java index f00563ae..cb1c2ec8 100644 --- a/spring-geode-autoconfigure/src/test/java/example/geode/cache/EchoCacheLoader.java +++ b/spring-geode-autoconfigure/src/test/java/example/geode/cache/EchoCacheLoader.java @@ -13,12 +13,12 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package example.geode.cache; import org.apache.geode.cache.CacheLoader; import org.apache.geode.cache.CacheLoaderException; import org.apache.geode.cache.LoaderHelper; + import org.springframework.geode.cache.support.CacheLoaderSupport; /** diff --git a/spring-geode-autoconfigure/src/test/java/example/geode/query/cq/event/TemperatureReadingsContinuousQueriesHandler.java b/spring-geode-autoconfigure/src/test/java/example/geode/query/cq/event/TemperatureReadingsContinuousQueriesHandler.java index be7466f2..89954b51 100644 --- a/spring-geode-autoconfigure/src/test/java/example/geode/query/cq/event/TemperatureReadingsContinuousQueriesHandler.java +++ b/spring-geode-autoconfigure/src/test/java/example/geode/query/cq/event/TemperatureReadingsContinuousQueriesHandler.java @@ -13,7 +13,6 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package example.geode.query.cq.event; import java.util.Collections; @@ -23,6 +22,7 @@ import java.util.concurrent.atomic.AtomicInteger; import java.util.stream.Collectors; import org.apache.geode.cache.query.CqEvent; + import org.springframework.data.gemfire.listener.annotation.ContinuousQuery; /** diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/CacheNameAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/CacheNameAutoConfigurationIntegrationTests.java index b2f08f73..1743adfd 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/CacheNameAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/CacheNameAutoConfigurationIntegrationTests.java @@ -21,11 +21,11 @@ import static org.mockito.Mockito.mock; import java.util.Collections; import java.util.function.Function; +import org.junit.Test; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.client.Pool; -import org.junit.Test; - import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.context.annotation.Bean; @@ -37,7 +37,7 @@ import org.springframework.geode.boot.autoconfigure.CacheNameAutoConfiguration; import org.springframework.geode.config.annotation.UseMemberName; /** - * Integration tests for {@link CacheNameAutoConfiguration}. + * Integration Tests for {@link CacheNameAutoConfiguration}. * * @author John Blum * @see org.junit.Test diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/ClientCachePoolCustomizationsIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/ClientCachePoolCustomizationsIntegrationTests.java index 7ffa9c99..bd72b0da 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/ClientCachePoolCustomizationsIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/ClientCachePoolCustomizationsIntegrationTests.java @@ -18,10 +18,6 @@ package org.springframework.geode.boot.autoconfigure.cache.client; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.fail; -import org.apache.geode.cache.client.ClientCache; -import org.apache.geode.cache.client.Pool; -import org.apache.geode.cache.client.PoolManager; - import org.junit.After; import org.junit.AfterClass; import org.junit.Before; @@ -31,6 +27,10 @@ import org.junit.Ignore; import org.junit.Test; import org.junit.runners.MethodSorters; +import org.apache.geode.cache.client.ClientCache; +import org.apache.geode.cache.client.Pool; +import org.apache.geode.cache.client.PoolManager; + import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.Bean; @@ -45,7 +45,7 @@ import org.springframework.data.gemfire.tests.integration.SpringBootApplicationI import org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects; /** - * Integration Test testing the custom configuration of the {@literal DEFAULT} {@link Pool} + * Integration Tests testing the custom configuration of the {@literal DEFAULT} {@link Pool} * as well as a named {@link Pool} when using Spring Boot {@link EnableAutoConfiguration auto-configuration} * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/SpringBootApacheGeodeClientCacheApplicationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/SpringBootApacheGeodeClientCacheApplicationIntegrationTests.java index c00a693c..6e61e146 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/SpringBootApacheGeodeClientCacheApplicationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/client/SpringBootApacheGeodeClientCacheApplicationIntegrationTests.java @@ -20,15 +20,15 @@ import static org.springframework.data.gemfire.util.RuntimeExceptionFactory.newI import java.util.Optional; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.cache.client.ClientRegionShortcut; import org.apache.geode.internal.cache.GemFireCacheImpl; -import org.junit.Test; -import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -40,7 +40,7 @@ import org.springframework.data.gemfire.util.RegionUtils; import org.springframework.test.context.junit4.SpringRunner; /** - * Integration test testing the auto-configuration of an Apache Geode {@link ClientCache} instance. + * Integration Tests testing the auto-configuration of an Apache Geode {@link ClientCache} instance. * * @author John Blum * @see org.junit.Test diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java index a5944860..55ccde36 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cache/peer/SpringBootApacheGeodePeerCacheApplicationIntegrationTests.java @@ -20,15 +20,15 @@ import static org.springframework.data.gemfire.util.RuntimeExceptionFactory.newI import java.util.Optional; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.Cache; import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.internal.cache.GemFireCacheImpl; -import org.junit.Test; -import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -40,7 +40,7 @@ import org.springframework.data.gemfire.util.RegionUtils; import org.springframework.test.context.junit4.SpringRunner; /** - * Integration test testing the auto-configuration of an Apache Geode peer {@link Cache} instance, overriding + * Integration Tests testing the auto-configuration of an Apache Geode peer {@link Cache} instance, overriding * the default {@link ClientCache} instance. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/GemFirePropertiesIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/GemFirePropertiesIntegrationTests.java index 0126612b..4d20fb07 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/GemFirePropertiesIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/GemFirePropertiesIntegrationTests.java @@ -17,11 +17,11 @@ package org.springframework.geode.boot.autoconfigure.configuration; import static org.assertj.core.api.Assertions.assertThat; -import org.apache.geode.cache.RegionShortcut; - import org.junit.Test; import org.junit.runner.RunWith; +import org.apache.geode.cache.RegionShortcut; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -52,7 +52,7 @@ import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link GemFireProperties}. + * Integration Tests for {@link GemFireProperties}. * * @author John Blum * @see org.junit.Test diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/SpringSessionPropertiesIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/SpringSessionPropertiesIntegrationTests.java index 756f11dc..8128b99f 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/SpringSessionPropertiesIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/configuration/SpringSessionPropertiesIntegrationTests.java @@ -18,6 +18,10 @@ package org.springframework.geode.boot.autoconfigure.configuration; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.DataPolicy; import org.apache.geode.cache.Region; import org.apache.geode.cache.RegionShortcut; @@ -26,10 +30,6 @@ import org.apache.geode.cache.client.ClientRegionShortcut; import org.apache.geode.cache.client.Pool; import org.apache.geode.pdx.PdxSerializer; -import org.junit.Before; -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.autoconfigure.SpringBootApplication; @@ -45,7 +45,7 @@ import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link SpringSessionProperties}. + * Integration Tests for {@link SpringSessionProperties}. * * @author John Blum * @see org.junit.Test diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cq/AutoConfiguredContinuousQueryIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cq/AutoConfiguredContinuousQueryIntegrationTests.java index 4c8e100f..a1614d74 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cq/AutoConfiguredContinuousQueryIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/cq/AutoConfiguredContinuousQueryIntegrationTests.java @@ -21,6 +21,11 @@ import java.io.IOException; import javax.annotation.Resource; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.CacheLoader; import org.apache.geode.cache.CacheLoaderException; import org.apache.geode.cache.GemFireCache; @@ -28,11 +33,6 @@ import org.apache.geode.cache.LoaderHelper; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientRegionShortcut; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; -import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -55,7 +55,7 @@ import example.geode.query.cq.event.TemperatureReading; import example.geode.query.cq.event.TemperatureReadingsContinuousQueriesHandler; /** - * Integration tests testing the auto-configuration of Apache Geode/Pivotal GemFire Continuous Query. + * Integration Tests testing the auto-configuration of Apache Geode/Pivotal GemFire Continuous Query. * * @author John Blum * @see org.junit.Test diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/function/AutoConfiguredFunctionExecutionsIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/function/AutoConfiguredFunctionExecutionsIntegrationTests.java index 269d255e..52949a6d 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/function/AutoConfiguredFunctionExecutionsIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/function/AutoConfiguredFunctionExecutionsIntegrationTests.java @@ -22,14 +22,14 @@ import java.util.Arrays; import java.util.Iterator; import java.util.Optional; -import org.apache.geode.cache.GemFireCache; -import org.apache.geode.cache.execute.FunctionService; - import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.execute.FunctionService; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -43,7 +43,7 @@ import org.springframework.test.context.junit4.SpringRunner; import org.springframework.util.Assert; /** - * Integration tests testing the auto-configuration of Spring Data for Apache Geode/Pivotal GemFire + * Integration Tests testing the auto-configuration of Spring Data for Apache Geode/Pivotal GemFire * Function implementations and executions support. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/locator/SpringBootLocatorApplicationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/locator/SpringBootLocatorApplicationIntegrationTests.java index e596834b..d5859f1c 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/locator/SpringBootLocatorApplicationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/locator/SpringBootLocatorApplicationIntegrationTests.java @@ -18,13 +18,13 @@ package org.springframework.geode.boot.autoconfigure.locator; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.distributed.Locator; -import org.junit.Test; -import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.Bean; diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/logging/LoggingAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/logging/LoggingAutoConfigurationIntegrationTests.java index 712673fd..4b164453 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/logging/LoggingAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/logging/LoggingAutoConfigurationIntegrationTests.java @@ -19,12 +19,12 @@ import static org.assertj.core.api.Assertions.assertThat; import java.util.Properties; -import org.apache.geode.cache.GemFireCache; -import org.apache.geode.distributed.internal.DistributionConfig; - import org.junit.Test; import org.junit.runner.RunWith; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.distributed.internal.DistributionConfig; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -44,6 +44,7 @@ import org.springframework.test.context.junit4.SpringRunner; * @see org.springframework.boot.autoconfigure.SpringBootApplication * @see org.springframework.boot.test.context.SpringBootTest * @see org.springframework.data.gemfire.tests.integration.IntegrationTestsSupport + * @see org.springframework.data.gemfire.tests.mock.annotation.EnableGemFireMockObjects * @see org.springframework.test.context.junit4.SpringRunner * @since 1.1.0 */ diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/AutoConfiguredRepositoriesIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/AutoConfiguredRepositoriesIntegrationTests.java index ef12f9d1..dd3ce3c5 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/AutoConfiguredRepositoriesIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/AutoConfiguredRepositoriesIntegrationTests.java @@ -19,14 +19,14 @@ import static org.assertj.core.api.Assertions.assertThat; import javax.annotation.Resource; -import org.apache.geode.cache.Region; -import org.apache.geode.cache.client.ClientRegionShortcut; - import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientRegionShortcut; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -39,7 +39,7 @@ import org.springframework.geode.boot.autoconfigure.repository.service.CustomerS import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests testing the auto-configuration of Spring Data Repositories backed by either Apache Geode + * Integration Tests testing the auto-configuration of Spring Data Repositories backed by either Apache Geode * or Pivotal GemFire. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/model/Customer.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/model/Customer.java index ca7e8617..487219de 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/model/Customer.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/repository/model/Customer.java @@ -13,16 +13,15 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package org.springframework.geode.boot.autoconfigure.repository.model; +import org.springframework.data.annotation.Id; +import org.springframework.data.gemfire.mapping.annotation.Region; + import lombok.Data; import lombok.NonNull; import lombok.RequiredArgsConstructor; -import org.springframework.data.annotation.Id; -import org.springframework.data.gemfire.mapping.annotation.Region; - /** * {@link Customer} class and Abstract Data Type (ADT) modeling a customer. * diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/AbstractAutoConfiguredSecurityContextIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/AbstractAutoConfiguredSecurityContextIntegrationTests.java index c7265a36..2fc103fa 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/AbstractAutoConfiguredSecurityContextIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/AbstractAutoConfiguredSecurityContextIntegrationTests.java @@ -28,17 +28,11 @@ import java.util.Arrays; import java.util.Optional; import java.util.Properties; -import lombok.Data; -import lombok.EqualsAndHashCode; -import lombok.NonNull; -import lombok.RequiredArgsConstructor; -import lombok.ToString; +import org.junit.Test; import org.apache.geode.security.AuthenticationFailedException; import org.apache.geode.security.ResourcePermission; -import org.junit.Test; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @@ -52,6 +46,11 @@ import org.springframework.util.StringUtils; import example.echo.config.EchoClientConfiguration; import example.echo.config.EchoServerConfiguration; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.NonNull; +import lombok.RequiredArgsConstructor; +import lombok.ToString; /** * The {@link AbstractAutoConfiguredSecurityContextIntegrationTests} class is an abstract security context integration test class diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/http/HttpBasicAuthenticationSecurityConfigurationUnitTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/http/HttpBasicAuthenticationSecurityConfigurationUnitTests.java index 53470bbc..1ebcc3a5 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/http/HttpBasicAuthenticationSecurityConfigurationUnitTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/http/HttpBasicAuthenticationSecurityConfigurationUnitTests.java @@ -34,12 +34,12 @@ import java.net.InetAddress; import java.net.PasswordAuthentication; import java.util.concurrent.atomic.AtomicReference; +import org.junit.Test; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.management.internal.security.ResourceConstants; -import org.junit.Test; - import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.core.env.Environment; import org.springframework.data.gemfire.config.admin.remote.RestHttpGemfireAdminTemplate; @@ -54,13 +54,15 @@ import org.springframework.lang.Nullable; import org.springframework.web.client.RestTemplate; /** - * Unit tests for {@link HttpBasicAuthenticationSecurityConfiguration} + * Unit Tests for {@link HttpBasicAuthenticationSecurityConfiguration} * * @author John Blum + * @see java.net.Authenticator + * @see java.net.PasswordAuthentication * @see org.junit.Test * @see org.mockito.Mock * @see org.mockito.Mockito - * @see HttpBasicAuthenticationSecurityConfiguration + * @see org.springframework.geode.boot.autoconfigure.support.HttpBasicAuthenticationSecurityConfiguration * @since 1.0.0 */ public class HttpBasicAuthenticationSecurityConfigurationUnitTests { diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/hybrid/AutoConfiguredHybridSecurityContextIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/hybrid/AutoConfiguredHybridSecurityContextIntegrationTests.java index 455685b6..5c243cb1 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/hybrid/AutoConfiguredHybridSecurityContextIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/security/auth/hybrid/AutoConfiguredHybridSecurityContextIntegrationTests.java @@ -18,12 +18,12 @@ package org.springframework.geode.boot.autoconfigure.security.auth.hybrid; import java.io.IOException; import java.util.Properties; -import org.apache.geode.cache.client.ClientCache; - import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.runner.RunWith; +import org.apache.geode.cache.client.ClientCache; + import org.springframework.boot.WebApplicationType; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/CachingDefinedRegionTemplateAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/CachingDefinedRegionTemplateAutoConfigurationIntegrationTests.java index 898f4188..d7696085 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/CachingDefinedRegionTemplateAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/CachingDefinedRegionTemplateAutoConfigurationIntegrationTests.java @@ -22,14 +22,14 @@ import java.util.stream.Collectors; import javax.annotation.Resource; -import org.apache.geode.cache.GemFireCache; -import org.apache.geode.cache.Region; -import org.apache.geode.cache.client.ClientRegionShortcut; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientRegionShortcut; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -48,7 +48,7 @@ import example.app.books.model.Book; import example.app.library.service.LibraryService; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using SDG's {@link EnableCachingDefinedRegions} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using SDG's {@link EnableCachingDefinedRegions} * annotation to define {@link Region Regions} and associated Templates. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredNonInjectedRegionTemplateAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredNonInjectedRegionTemplateAutoConfigurationIntegrationTests.java index 921d7dca..84c11588 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredNonInjectedRegionTemplateAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredNonInjectedRegionTemplateAutoConfigurationIntegrationTests.java @@ -17,15 +17,15 @@ package org.springframework.geode.boot.autoconfigure.template; import static org.assertj.core.api.Assertions.assertThat; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.cache.client.ClientRegionShortcut; -import org.junit.Before; -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.autoconfigure.SpringBootApplication; diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredRegionTemplateAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredRegionTemplateAutoConfigurationIntegrationTests.java index 4308f1ed..25e4b5d7 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredRegionTemplateAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/DeclaredRegionTemplateAutoConfigurationIntegrationTests.java @@ -19,13 +19,13 @@ import static org.assertj.core.api.Assertions.assertThat; import javax.annotation.Resource; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientRegionShortcut; -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.autoconfigure.SpringBootApplication; @@ -40,7 +40,7 @@ import org.springframework.geode.boot.autoconfigure.RegionTemplateAutoConfigurat import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using explicitly declared {@link Region} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using explicitly declared {@link Region} * bean definitions in a Spring {@link ApplicationContext}. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/EntityDefinedRegionTemplateAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/EntityDefinedRegionTemplateAutoConfigurationIntegrationTests.java index ad1d9f63..a3cae6d7 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/EntityDefinedRegionTemplateAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/EntityDefinedRegionTemplateAutoConfigurationIntegrationTests.java @@ -21,14 +21,14 @@ import java.util.stream.Collectors; import javax.annotation.Resource; -import org.apache.geode.cache.GemFireCache; -import org.apache.geode.cache.Region; -import org.apache.geode.cache.client.ClientRegionShortcut; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; +import org.apache.geode.cache.client.ClientRegionShortcut; + import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.boot.autoconfigure.SpringBootApplication; @@ -46,7 +46,7 @@ import example.app.books.model.Book; import example.app.books.model.ISBN; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using SDG's {@link EnableEntityDefinedRegions} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using SDG's {@link EnableEntityDefinedRegions} * annotation to define {@link Region Regions} and associated Templates. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByNameAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByNameAutoConfigurationIntegrationTests.java index 4794cf34..c31b086c 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByNameAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByNameAutoConfigurationIntegrationTests.java @@ -19,13 +19,13 @@ import static org.assertj.core.api.Assertions.assertThat; import javax.annotation.Resource; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientRegionShortcut; -import org.junit.Test; -import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -40,7 +40,7 @@ import org.springframework.geode.boot.autoconfigure.RegionTemplateAutoConfigurat import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using explicitly declared {@link Region} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using explicitly declared {@link Region} * bean definition and existing, "named" {@link GemfireTemplate} in a Spring {@link ApplicationContext}. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByRegionAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByRegionAutoConfigurationIntegrationTests.java index e3362feb..960218ec 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByRegionAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ExistingRegionTemplateByRegionAutoConfigurationIntegrationTests.java @@ -19,13 +19,13 @@ import static org.assertj.core.api.Assertions.assertThat; import javax.annotation.Resource; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientRegionShortcut; -import org.junit.Test; -import org.junit.runner.RunWith; - import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.test.context.SpringBootTest; @@ -40,7 +40,7 @@ import org.springframework.geode.boot.autoconfigure.RegionTemplateAutoConfigurat import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using explicitly declared {@link Region} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using explicitly declared {@link Region} * bean definition and existing {@link GemfireTemplate} {@link Region} in a Spring {@link ApplicationContext}. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/NativeDefinedRegionTemplateAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/NativeDefinedRegionTemplateAutoConfigurationIntegrationTests.java index 25a16b0f..01dc07ae 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/NativeDefinedRegionTemplateAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/NativeDefinedRegionTemplateAutoConfigurationIntegrationTests.java @@ -19,12 +19,12 @@ import static org.assertj.core.api.Assertions.assertThat; import java.util.stream.Collectors; -import org.apache.geode.cache.GemFireCache; -import org.apache.geode.cache.Region; - import org.junit.Test; import org.junit.runner.RunWith; +import org.apache.geode.cache.GemFireCache; +import org.apache.geode.cache.Region; + import org.springframework.beans.factory.NoSuchBeanDefinitionException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; @@ -41,7 +41,7 @@ import org.springframework.geode.boot.autoconfigure.RegionTemplateAutoConfigurat import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using natively declared {@link Region} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using natively declared {@link Region} * definitions in GemFire/Geode {@literal cache.xml}. * * @author John Blum diff --git a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ServerDefinedRegionTemplateAutoConfigurationIntegrationTests.java b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ServerDefinedRegionTemplateAutoConfigurationIntegrationTests.java index 1e5fe6a3..023c6ae1 100644 --- a/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ServerDefinedRegionTemplateAutoConfigurationIntegrationTests.java +++ b/spring-geode-autoconfigure/src/test/java/org/springframework/geode/boot/autoconfigure/template/ServerDefinedRegionTemplateAutoConfigurationIntegrationTests.java @@ -20,15 +20,15 @@ import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; import java.util.stream.Collectors; +import org.junit.BeforeClass; +import org.junit.Test; +import org.junit.runner.RunWith; + import org.apache.geode.cache.DataPolicy; import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientCache; -import org.junit.BeforeClass; -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.autoconfigure.SpringBootApplication; @@ -47,7 +47,7 @@ import org.springframework.geode.boot.autoconfigure.RegionTemplateAutoConfigurat import org.springframework.test.context.junit4.SpringRunner; /** - * Integration tests for {@link RegionTemplateAutoConfiguration} using SDG's {@link EnableClusterDefinedRegions} + * Integration Tests for {@link RegionTemplateAutoConfiguration} using SDG's {@link EnableClusterDefinedRegions} * annotation to define {@link Region Regions} and associated Templates. * * @author John Blum diff --git a/spring-geode/src/test/java/org/springframework/geode/config/annotation/LocatorsConfigurationIntegrationTests.java b/spring-geode/src/test/java/org/springframework/geode/config/annotation/LocatorsConfigurationIntegrationTests.java index cc21925b..c9ff7a50 100644 --- a/spring-geode/src/test/java/org/springframework/geode/config/annotation/LocatorsConfigurationIntegrationTests.java +++ b/spring-geode/src/test/java/org/springframework/geode/config/annotation/LocatorsConfigurationIntegrationTests.java @@ -24,15 +24,15 @@ import static org.springframework.geode.config.annotation.LocatorsConfiguration. import java.net.InetAddress; import java.util.Properties; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + import org.apache.geode.cache.Cache; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.distributed.DistributedSystem; import org.apache.geode.distributed.Locator; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.context.annotation.Bean; @@ -48,7 +48,7 @@ import org.springframework.lang.Nullable; import org.springframework.util.Assert; /** - * Integration tests for {@link UseLocators} and {@link LocatorsConfiguration}. + * Integration Tests for {@link UseLocators} and {@link LocatorsConfiguration}. * * @author John Blum * @see java.net.InetAddress