Commit Graph

307 Commits

Author SHA1 Message Date
John Blum
fcafd5ca46 Add additional overloaded closeGemFireCacheWaitOnCacheClosedEvent(..) methods to control how the GemFireCache object (instance) is closed using a java.util.function.Function. 2021-09-20 11:55:45 -07:00
John Blum
fef16bf957 Add overloaded closeGemFireCacheWaitOnCacheClosedEvent(..) methods accepting a Supplier for a GemFireCache object to close. 2021-09-20 11:55:23 -07:00
John Blum
84442946bd Unregister all Functions from Apache Geode's FunctionService after test class/suite execution. 2021-09-16 22:57:04 -07:00
John Blum
61316b8631 Change all JUnit declared @BeforeClass Spring and Apache Geode object and resource cleanup to occur after test (class/suite) execution using JUnit's @AfterClass.
Edit Javadoc.
2021-09-16 22:56:50 -07:00
John Blum
e188e9f48e Add test class cleanup method to delete all Apache Geode/VMware GemFire process .pid files. 2021-09-15 18:16:18 -07:00
John Blum
5cef6cdbd6 Rename closeAnyGemFireCacheInstanceBeforeTestExecution() method to claseAnyGemFireCacheBeforeTestExecution(). 2021-09-15 18:15:20 -07:00
John Blum
3efceeb494 Add overloaded newApplicationContext(..) method to accept a Function to further initialize and process the new ApplicationContext created in the SpringApplicationContextIntegrationTestsSupport class. 2021-09-14 23:37:12 -07:00
John Blum
f24c1a7690 Add containsBean(:String) method to the SpringApplicationContextIntegrationTestsSupport class. 2021-09-14 23:32:33 -07:00
John Blum
876ad6ec52 Add getBeansOfType(Class<T>) method to the SpringApplicationContextIntegrationTestsSupport class. 2021-09-14 23:32:01 -07:00
John Blum
666555a220 Suppress (unchecked) compiler warning in GemFireMockObjectsSupport. 2021-09-14 11:55:36 -07:00
John Blum
770b3c85cf Add getters and setter for the autowiored/injected Spring ConfigurableApplicationContext object reference in IntegrationTestsSupport. 2021-09-14 11:52:14 -07:00
John Blum
b1de07519b Add capability to unregister all Functions registered with the FunctionService on destruction of the GemFire Mock Objects. 2021-09-14 11:00:32 -07:00
John Blum
87a7bc8e49 Fix bug with DistributedSystem Properties handling in mock object configuration. 2021-09-13 14:39:48 -07:00
John Blum
a6fa87638e Refer to Apache Geode properties by name using DistributionConfig constants. 2021-09-13 13:22:56 -07:00
John Blum
933721a969 Mock the Pool.getQueryService() method. 2021-09-13 12:09:01 -07:00
John Blum
227f96e900 Add capability to remember (refer to) and resolve a reference to any (latest) GemFireCache object created by the Apache Geode mock objects test framework. 2021-09-13 12:07:33 -07:00
John Blum
ee16dd37ad Add mock support for CacheServer groups configuration. 2021-09-10 17:41:01 -07:00
John Blum
20e401e94f Fix bugs in mock Index logic regarding (mock) Region references. 2021-09-10 17:26:14 -07:00
John Blum
70cf67cf45 Fix bugs in mock Lucene objects functionality. 2021-09-10 16:51:28 -07:00
John Blum
598a520dbe Refactor mockLuceneIndexFactory(..) method logic. 2021-09-10 16:16:08 -07:00
John Blum
5b78c3d856 Format source code. 2021-09-10 15:12:07 -07:00
John Blum
e398b8a23b Add mock support for MembershipAttributes configuration on RegionAttributes for a Region. 2021-09-10 15:08:17 -07:00
John Blum
fc98bd0fd4 Add mock support for the Apache Geode CacheTransactionManager API. 2021-09-10 11:17:48 -07:00
John Blum
8f31eb4f1b Add overloaded signal(..) method to accept an arbitrary Object value to send to the server. 2021-09-10 10:44:19 -07:00
John Blum
bc1fcd6cd1 Add startGeodeServer(..) alias method for the startGemFireServer(..) method in the ForkingClientServerIntegrationTestsSupport class. 2021-09-09 11:17:10 -07:00
John Blum
a39f40841d Refresh the Spring ApplicationContext in the runSpringApplication(..) method of the ClientServerIntegrationTestsSupport class. 2021-09-09 11:13:02 -07:00
John Blum
2ff96e5c6f Add static block() method in ClientServerIntegrationTestsSupport to prevent forked, non-daemon JVM processes used in testing from prematurely terminating. 2021-09-09 11:05:04 -07:00
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