Commit Graph

280 Commits

Author SHA1 Message Date
John Blum
9dcd1ed8ea Change mock GatewayReceiver.getPort() to generate a random port between start and end ports. 2021-09-09 10:43:30 -07:00
John Blum
74da92a993 Change mock GatewayReceiver 'running' property to be the negation of 'manualStart'. 2021-09-09 10:38:36 -07:00
John Blum
149dcfe035 Enable mocking for GatewayReceiver.getHostnameForSenders(). 2021-09-09 10:33:04 -07:00
John Blum
60c2ec5fe7 Change managed Set of GatewayReceivers from ConcurrentSkipListSet to a synchronized HashSet.
org.apache.geode.cache.wan.GatewayReceiver does not implement java.lang.Comparable and is not naturally ordered (sortable) and therefore cannot be stored in a ConcurrentSkipListSet without a custom Comparator.
2021-09-09 10:12:49 -07:00
John Blum
f1e594b10f Add configuration support to configure the Singleton property of the mock GemfireCache using Java (JVM) System properties. 2021-09-08 18:01:05 -07:00
John Blum
395d55ae1d Add mock configuration for the peer Cache gatewayConflictResolver object property. 2021-09-08 15:15:09 -07:00
John Blum
6889b3c696 Add mock configuration for the ClientCacheFactory's (DEFAULT Pool) and Pool's socketFactory property. 2021-09-08 14:13:00 -07:00
John Blum
4c86e7c93e Add mock configuration for the ClientCacheFactory's (DEFAULT Pool) and Pool's serverConnectionTimeout property. 2021-09-08 13:47:22 -07:00
John Blum
061b281ae9 Add support to resolve RegionAttributes from ClientRegionShortcut and RegionShortcut.
Add support to resolve the DistributedSystem name from GemFire properties.

Change the method signatures of mockClientRegionFactory(..) and mockRegionFactory(..).
2021-09-08 13:04:10 -07:00
John Blum
1fde5eaec0 Switch port allocation to find availavble port and reserve. 2021-09-08 12:52:49 -07:00
John Blum
fced306b12 Add null-safe static utility method used to close a given Spring ApplicationContext. 2021-09-08 12:52:49 -07:00
John Blum
3aefdaa81b Cleanup compiler warnings.
Format source code.
2021-09-08 12:41:22 -07:00
John Blum
7824f4bd9a Prepare next development iteration.
Set Spring Data BOM version to 2021.0.1-SNAPSHOT.

Set Spring Data Build Parent version to 2.5.1-SNAPSHOT.

Set Spring Data for Apache Geode & VMware Tanzu (Pivotal) GemFire version to 2.5.1-SNAPSHOT.

Set version to 0.0.26-SNAPSHOT.
2021-04-14 16:16:53 -07:00
John Blum
c9388fea70 Release 0.0.25. 2021-04-14 16:08:27 -07:00
John Blum
db03332430 Add Bash shell script source file to cleanup (delete) all Apach Geode files created at runtime. 2021-03-30 16:44:31 -07:00
John Blum
9e92ca251f Prepare next development iteration.
Set Spring Data version to Ockham-SR7.

Set Spring Data BOM version to 2020.0.7-SNAPSHOT.

Set Spring Data Build Parent version to 2.4.7-SNAPSHOT.

Set Spring Data for Apache Geode & VMware Tanzu (Pivotal) GemFire version to 2.4.7-SNAPSHOT.

Set version to 0.0.25-SNAPSHOT.
2021-03-29 15:51:52 -07:00
John Blum
8e250c13fa Release 0.0.24. 2021-03-29 15:44:06 -07:00
John Blum
2e26da27c4 Remove the deprecated SubscriptionEnabledClientServerIntegrationTestsConfiguration class. 2021-03-29 15:30:06 -07:00
John Blum
bef3a7a874 Include test logic and configuration to terminate a (forked) Spring application so it does not run indefinitely. 2021-03-29 15:25:02 -07:00
John Blum
bb06ce59a9 Remove unnecessary @SuppressWarnings('All') annotation declarations.
Format source code.
2021-03-29 15:24:18 -07:00
John Blum
2729e537f6 Add @AfterClass test logic to cleanup non-Standard Spring container Environment PropertySources if available. 2021-03-29 14:16:04 -07:00
John Blum
08aefff97d Rename the mockThePoolFactoryBean(:PoolFactoryBean) method to mockPoolFactoryBean(:PoolFactoryBean).
Add/edit Javadoc.

Consistently apply Spring's @NonNull and @Nullable annotations to the API.
2021-03-29 11:37:36 -07:00
John Blum
52cc90c698 Refactor use of Spring's @NonNull & @Nullable annotations in the API. 2021-03-29 11:25:51 -07:00
John Blum
4eec7174d6 Prepare next development iteration.
Set Spring Data version to Ockham-SR7 / 2.4.7-SNAPSHOT.

Set Spring Data BOM version to 2020.0.7-SNAPSHOT.

Set Spring Data Build Parent version to 2.4.7-SNAPSHOT.

Set Spring Data for Apache Geode & VMware Tanzu (Pivotal) GemFire version to 2.4.7-SNAPSHOT.

Set version to 0.0.24-SNAPSHOT.
2021-03-22 20:47:47 -07:00
John Blum
cf8a843293 Release 0.0.23. 2021-03-22 20:41:19 -07:00
John Blum
c803efa301 Fix Javadoc tags and code blocks. 2021-03-22 20:27:23 -07:00
John Blum
40baf02fdd Add Integration Tests testing and asserting the publishing of Apache Geode cache lifecycle events through the Spring container (using the ApplicationEventPublisher with custom cache ApplicationEvents). 2021-03-22 20:16:28 -07:00
John Blum
bc9625ebcf Cleanup compiler warnings. 2021-03-22 20:14:48 -07:00
John Blum
26d6a6e511 Add Integration Tests testing and asserting the behavior of the Spring TestContext framework with regard to managing ApplicationContexts created, managed and used by test cases of test classes. 2021-03-22 20:10:37 -07:00
John Blum
b1fdb5962e Add TestContextApplicationEventPublisherAdapter class adapting the Spring TestContext framework and API as an instance of the ApplicationEventPublisher interface. 2021-03-22 20:08:41 -07:00
John Blum
9e03dc03c6 Add GeodeContextCustomizer and factory used to customize the Spring ApplicationContext setup during Integration Tests involving Apache Geode. 2021-03-22 20:07:46 -07:00
John Blum
3b5208c213 Add (experimental) DependencyOf annotation type and associated DependencyOfBeanFactoryPostProcessor class.
The @DependencyOf annotation is the inverse of Spring's @DependsOn annotation enabling a bean to declare itself as a dependency for another bean in the Spring ApplicationContext (container).
2021-03-22 20:05:34 -07:00
John Blum
08350ab997 Rename the AbstractApplicationContextCacheLifecycleListenerAdapter class to AbstractApplicationEventPublisherCacheLifecycleListenerAdapter.
Refactor the TestContextCacheLifecycleListenerAdapter class making it a proper Singleton (i.e. a final class with private constructor).

Add isOpen(:GemFireCache) method to TestContextCacheLifecycleListenerAdapter.

Rename cacheReferences to cacheInstances.
2021-03-22 19:48:53 -07:00
John Blum
59488b0a54 Move TestContextEventType enumeration to the org.springframework.data.gemfire.tests.extensions.spring.test.context.event package. 2021-03-22 19:42:38 -07:00
John Blum
dfd0d8e324 Move the GemFireUnitTest annotation to the org.springframework.data.gemfire.tests.unit.annotation package. 2021-03-22 19:37:36 -07:00
John Blum
103cb930ba Refactor codebase.
Apply Spring @NonNull & @Nullable annotations to the API.
2021-03-22 19:37:36 -07:00
John Blum
54e8b1ecde Refactor codebase.
Apply Spring @NonNull and @Nullable annotations to the API.
2021-03-22 19:37:36 -07:00
John Blum
14fa273445 Improve test context/infrastructure logic to reliably determine whether the GemFire/Geode cache instance was properly closed.
This test logic is necessary to prevent interference between tests, particularly for integration tests involving live GemFire/Geode objects, especially since GemFire/Geode is rife with Singletons.

For example, SSL configuration settings linger between tests if the cache is not fully closed (when all resources are adequately released) in a timely manner.
2021-03-22 19:36:56 -07:00
John Blum
3d13306ace Rename IntegrationTestsSupport.clearAllBeanFactoryLocators() method to closeAllBeanFactoryLocators(). 2021-03-18 12:34:13 -07:00
John Blum
cbfa432c5a Prepare next development iteration.
Set Spring Data BOM version to 2020.0.4-SNAPSHOT / Ockham-SR4.

Set Spring Data Build Parent version to 2.4.4-SNAPSHOT.

Set Spring Data for Apache Geode version to 2.4.4-SNAPSHOT.

Set version to 0.0.23-SNAPSHOT.
2021-01-25 14:06:54 -08:00
John Blum
dd069ce18d Release 0.0.22. 2021-01-25 14:00:08 -08:00
John Blum
80bd2d19ab Add RegionSpyingBeanPostProcessor class to spy on Region beans managed in a Spring TestContext for testing purposes. 2020-12-11 13:46:45 -08:00
John Blum
df5635f925 Prepare next development iteration.
Set Spring Data version to Ockham-SNAPSHOT.

Set Spring Data for Apache Geode & VMware Tanzu (Pivotal) GemFire version to 2.4.2-SNAPSHOT.

Set Spring Data Build Parent version to 2.4.2-SNAPSHOT.

Set Spring Data BOM version to 2020.0.2-SNAPSHOT.
2020-12-11 13:46:45 -08:00
John Blum
5d28098663 Release 0.0.21.RELEASE. 2020-12-11 13:46:45 -08:00
John Blum
d6f1a02a24 Declare 'java-module-name' build property required by Java 9 Module System. 2020-12-11 13:47:01 -08:00
John Blum
6bbf106483 Upgrade to Freefair Lombok Gradle Plugin 5.3.0. 2020-12-11 13:46:45 -08:00
John Blum
2f14f9691c Prepare next development iteration.
Set Spring Data for Apache Geode & VMware Tanzu (Pivotal) GemFire version to 2.3.6.BUILD-SNAPSHOT.

Set Spring Data Build version to 2.3.6.BUILD-SNAPSHOT.

Set Spring Data Release Train (BOM) version to Neumann-BUILD-SNAPSHOT.

Set version to 0.0.21-SNAPSHOT.
2020-11-03 12:42:14 -08:00
John Blum
1a94b1d9a4 Release 0.0.20.RELEASE. 2020-11-03 12:26:40 -08:00
John Blum
77ac40d653 Add @Configuration class for Locator only.
Add @Configuration class for Manager only.
2020-11-03 10:41:10 -08:00
John Blum
49a580fe93 Prepare next development iteration.
Set Spring Data version to Neumann-BUILD-SNAPSHOT.

Set Spring Data for Apache Geode & VMware Tanzu GemFire version to 2.3.5.BUILD-SNAPSHOT.

Set Spring Data Build version to 2.3.5.BUILD-SNAPSHOT.

Set Spring Data Release Train version to Neumann-BUILD-SNAPSHOT.
2020-09-16 20:04:27 -07:00