John Blum
1b327deba8
Randomize Locator network ports.
2021-04-09 12:46:06 -07:00
John Blum
409a603502
Add additional SLF4J Logback Loggers for Apache Geode & Spring Geode along with distinguishing the Loggers by name.
2021-04-09 12:45:22 -07:00
John Blum
49decc47bc
Rename application-vcap.properties to application-vcap-cloud.properties.
2021-04-09 12:44:48 -07:00
John Blum
457ecdf89d
Declare 'vcapApplicationProperties' class member field as final.
...
Declare 'loadVcapApplicationProperties()' and 'unsetTestAutoConfiguredPoolServersPortSystemProperty()' methods as private.
2021-04-09 12:44:20 -07:00
John Blum
0728ee1e21
Refactor all Unit & Integration Tests starting a Spring container with SpringRunner to extend STDG's IntegrationTestsSupport.
2021-04-09 12:41:36 -07:00
John Blum
1922928dee
Fix generic typing on Session.getAttribute(attributeName) call.
2021-04-09 12:36:34 -07:00
John Blum
2cc0b62651
Reset the ClusterAwareConfiguration.ClusterAwareCondition before & after test class (suite) execution.
...
Refactor the test case method names in the ClusterConfigurationWhenNonSecureClusterAvailableIntegrationTests class to be apparent that HTTPS is *not* required.
2021-04-09 12:36:02 -07:00
John Blum
f82cf51931
Reinstate (apply) Spring's @DirtiesContext annotation.
...
Additionally, declare before & after class setup/tear down proceduce to reset the ClusterAwareConfiguration.ClusterAwareCondition.
2021-04-09 12:35:12 -07:00
John Blum
579bd368de
Edit Javadoc.
2021-04-09 12:34:07 -07:00
John Blum
e22d65f71e
Use GemFire Mock Objects.
2021-04-09 12:33:34 -07:00
John Blum
af2dedb095
Use static import for the AssertJ Assertions class, assertThat(..) method.
2021-04-09 12:33:04 -07:00
John Blum
a876bccd10
Cleanup raw types usage.
2021-04-09 12:32:42 -07:00
John Blum
d9dc2815a7
Add additional assertion on Region name, equal to 'Books'.
2021-04-09 12:31:31 -07:00
John Blum
5b86f4f098
Refactor and polish codebase.
...
Fix compiler warnings.
Declare Properties class fields containing VCAP_APPLICATION properties as final.
2021-04-09 12:30:42 -07:00
John Blum
46ab547c92
Fix compiler warnings.
...
Make Function instance fields final.
2021-04-09 12:26:21 -07:00
John Blum
cf284ffcda
Change assertion on cache instance to assert as a peer cache.
2021-04-09 12:25:46 -07:00
John Blum
d869ec117a
Fix try-catch block to appropriately handle the intentional AssertJ AsesrtionFailedError and unintentional Java AssertionError.
...
Fixes test failures caused by erroneous AssertionError and AssertionFailedError handling.
Apply Spring's @NonNull annotation to the test methods.
Add assertion for the threadLocalConnections property on customized Pool objects.
Format source code.
Rename the usingClientCacheDefaultPoolPropertiesModifiesDefaultPool() test case method to usingClientCacheDefaultPoolPropertiesConfigurationModifiesDefaultPool().
2021-04-09 12:25:18 -07:00
John Blum
52cdf4848c
Fix VCAP_APPLICATION name to match the test class name.
2021-04-09 12:24:22 -07:00
John Blum
bba6e61011
Add additional assertions asserting that the 'Books' (client) Region DataPolicy is configured correctly.
...
Additionally, assert that the 'spring.data.gemfire.cache.client.region.shortcut' is not set (and specifically not set to 'LOCAL').
2021-01-20 14:10:28 -08:00
John Blum
06a19a0787
Add Logger configuration for 'org.springframework.geode.config.annotation.ClusterAwareConfiguration'.
2021-01-20 14:08:14 -08:00
John Blum
62848e9277
Polish the SecureClusterAwareConfigurationIntegrationTests.
...
Resolves gh-57.
2021-01-15 12:51:57 -08:00
John Blum
4a20f7be61
Support awareness and discovery of secure (Auth and SSL eanbled) Apache Geode clusters using @EnableClusterAware annotation functionality.
...
Improves log details about the runtime environment (e.g. cloud, standalone/self-managed).
Resolves gh-57.
Resolves gh-99.
2021-01-15 01:32:48 -08:00
John Blum
d08525708b
Move Cluster Configuration Integration Tests to the org.springframework.geode.boot.autoconfigure.cluster.config package.
2021-01-14 21:57:04 -08:00
John Blum
03fb54d83a
Upgrade to Freefair Lombok Gradle Plugin 5.3.0.
2020-12-09 12:56:04 -08:00
John Blum
55d9b52e1a
Add Integration Test testing the configuration and expected behavior of (HTTP) Session state caching using Spring Session with Apache Geode and Mock Objects auto-configured with Spring Boot.
2020-11-04 16:50:48 -08:00
John Blum
9e1501327e
Annotate test class with @SuppressWarnings('unused').
2020-11-04 16:27:29 -08:00
John Blum
09d15e87c2
Upgrade to FreeFair Lombok Gradle Plugin 5.2.1.
2020-09-18 02:33:58 -07:00
John Blum
2aaaea76bf
Remove exclude from Apache Geode dependencies on 'org.apache.logging.log4j:log4j-core'.
...
Resolves gh-48.
2020-09-18 02:33:58 -07:00
John Blum
74c4bdbcd9
Remove exclude from Apache Geode dependencies on 'javax.servlet:javax.servlet-api'.
...
Resolves gh-49.
2020-09-18 02:33:58 -07:00
John Blum
d1147415c2
Remvove all properties (configuration file) references to 'Pivotal GemFire' or 'GemFire' in general.
2020-09-17 21:28:48 -07:00
John Blum
cb34cd2201
Remove all source code (Javadoc) references to 'Pivotal GemFire' or 'GemFire' in general.
2020-09-17 21:24:16 -07:00
John Blum
68e37b7276
Cleanup use of the deprecated SpringBoot, SpringApplicationBuilder.contextClass(:Class) API.
...
Replace with SpringApplicationBuilder.contextFactory(ApplicationContextFactory.ofContextClass(:Class)).
2020-08-19 20:05:35 -07:00
John Blum
20fed2b4c0
Adapt to API changes in the STDG 0.0.17.RELEASE.
...
Specifically, change '@EnableGemFireMockObjects' annotation, 'destroyOnEvent' attribute references to 'destoryOnEvents'.
2020-07-27 00:49:33 -07:00
John Blum
20b8c2d172
Cleanup all unsafe and unchecked compiler warnings.
2020-07-23 14:57:01 -07:00
John Blum
ba24c50ba2
Cleanup uses and/or overrides of Apache Geode, Spring and Test Framework (e.g. Mockito) deprecated APIs.
2020-07-23 14:57:09 -07:00
John Blum
5ca11cbc44
Declare 'com.google.code.findbugs:jsr305' as a compileOnly/testCompileOnly depedency to cleanup Gradle build warnings.
...
Without this dependency the Gradle build logs warnings about:
> Task :spring-geode-autoconfigure:compileTestJava
warning: unknown enum constant When.MAYBE
reason: class file for javax.annotation.meta.When not found
...
2020-07-23 14:57:01 -07:00
John Blum
6fc18bc449
Extend STDG's o.s.d.g.tests.integration.IntegrationTestsSupport base class.
2020-07-23 13:42:51 -07:00
John Blum
760b381941
Switch the 'org.springframework.boot:spring-boot-starter-web' dependency from 'testRuntime' to 'testCompile'.
2020-07-23 12:25:14 -07:00
John Blum
0cd2f4df1b
Add Integration Tests testing the (auto) configuration of custom import and export Resources via HTTP to a REST service.
...
Resolves gh-92.
2020-07-23 12:25:14 -07:00
John Blum
9eb6915c87
Remove ResourceNotFoundException catch block and handler logic from the overridden doImportInto(:Region) method in JsonCacheDataImporterExporter factory method.
...
Resolves gh-92.
2020-07-22 17:11:56 -07:00
John Blum
4a7de7f565
Rearrange the Management REST API property configuration to set properties alphabetically for readability.
2020-07-21 12:00:35 -07:00
John Blum
84f0af50e4
Adapt cache data import/export auto-configuration to the new ResolverResolver, ResourceReader and ResourceWriter API.
...
Resolves gh-92.
2020-07-20 20:58:00 -07:00
John Blum
5994d6b6a3
Upgrade to FreeFair Lombok Gradle Plugin 5.1.0.
2020-06-10 23:48:29 -07:00
John Blum
5318782bfb
Fix bug to handle cache data import into client LOCAL Regions when no PDX type registry exists.
...
Resolves gh-91.
2020-06-10 23:16:11 -07:00
John Blum
f83880ea97
Reset ClusterAwareCondition.
2020-06-09 15:20:08 -07:00
John Blum
1501d7fac6
Fix bug with cache data import when using @EnableClusterAware.
...
Resolves gh-90.
2020-06-09 14:10:10 -07:00
John Blum
288b6bb7ec
Fix bug in cache data export caused by Apache Geode's JVM Shutdown Hook.
...
Resolves gh-88.
2020-06-08 15:19:10 -07:00
John Blum
95c0009cdc
Rename 'peerRegion(..)' bean definition method and 'peerRegion' local variable to 'booksRegion'.
2020-06-08 15:11:15 -07:00
John Blum
0ab5e0ffee
Rename 'booksWasLoaded' test case method to 'booksWereLoaded'.
2020-06-04 17:19:16 -07:00
John Blum
21b6e8758f
Configure destruction of GemFire/Geode Mock Objects on Spring ApplicationContext ContextClosedEvents.
2020-05-22 01:41:30 -07:00