Commit Graph

33 Commits

Author SHA1 Message Date
John Blum
6dec5b8d73 Add utility method to find and reserve allocated network ports. 2020-04-15 13:12:35 -07:00
John Blum
68c5edb974 Format source code.
Optimize imports.
2020-02-22 20:26:52 -08:00
John Blum
19847910c8 Optimize imports. 2020-02-22 20:17:34 -08:00
John Blum
01028ca116 Add Unit Tests for AEQ pause & resume event dispatching. 2019-11-04 12:25:41 -08:00
John Blum
b9b9f51f9c Add Apache Geode Logger with a log-level of 'ERROR'. 2019-10-01 13:04:21 -07:00
John Blum
9f87352a5e Rename closeAnyExistingGemFireCacheInstanceBeforeTestExecution() as closeAnyGemFireCacheInstanceBeforeTestExecution().
Rename closeAnyExistingSocketConfigurationBeforeTestExecution() as closeAnySocketConfigurationBeforeTestExecution().

Rename closeAnyExistingSslConfigurationBeforeTestExecution() as closeAnySslConfigurationBeforeTestExecution().

Rename stopAnyExistingGemFireLocatorBeforeTestExecution() as stopAnyGemFireLocatorBeforeTestExecution().
2019-09-09 19:24:25 -07:00
John Blum
4aa64fa637 Destroy all GemFire Mock Objects after each test case. 2019-09-09 19:10:59 -07:00
John Blum
e38fdeb32f Add null assertion for PoolManager.find('TEST') in tearDown(). 2019-09-09 19:01:54 -07:00
John Blum
2d72115fa9 Move GemFireObjectCreationTriggeredByGemFirePropertyConfigurationIntegrationTests to org.springframework.data.gemfire.tests. 2019-09-09 18:49:37 -07:00
John Blum
0653003f28 Move MockClientCacheDefaultPoolRegisteredWithPoolManagerUnitTests to org.springframework.data.gemfire.tests. 2019-09-09 18:49:37 -07:00
John Blum
36a0271505 Edit Javadoc; Optimize Imports. 2019-09-09 18:49:37 -07:00
John Blum
56cf069384 Eagerly create, initialize and register the 'DEFAULT' Pool with the o.a.g.cache.client.PoolManager when spying on the ClientCacheFactory and create() is called. 2019-09-09 18:49:37 -07:00
John Blum
9d2484855d Cleanup all SSL configuration and state in Apache Geode. 2019-09-09 01:39:03 -07:00
John Blum
b5f0bf1e09 Add Test Framework support for Mock Pool registration with the Apache Geode o.a.g.cache.client.PoolManager. 2019-09-03 18:36:10 -07:00
John Blum
2272f3e95a Add support to mock the GemFireCache.getName() property based on the GemFire distribution configuration properties when using the factories to create cache instances. 2019-07-25 14:09:17 -07:00
John Blum
cb0a0e02ed Add testing support for logging and capturing log events.
Adds a custom, SLF4J, Logback Appender named 'TestAppender' to listen for and record log events (ILoggingEvent) in a Stack.
2019-06-28 16:17:09 -07:00
John Blum
a5c941178f Fix bug (NPE) with the Mock ClientSubscriptionConfig. 2019-06-15 11:37:00 -07:00
John Blum
570fcce9eb Implement Region entry event triggers for CacheListeners, CacheLoaders and CacheWriters. 2019-06-14 18:45:31 -07:00
John Blum
0b01f6b240 Implement additional Region data access operations.
Implement Region.invalidate(key).

Implement Region.remove(key).

Re-implement Region.get(key), Region.getEntry(key) and Region.put(key) to handle invalidated keys (Region entries).
2019-06-14 14:37:11 -07:00
John Blum
c336bd5669 Update Copyright to 2019. 2019-06-09 18:45:06 -07:00
John Blum
ce53de4c61 Optimize imports. 2019-06-09 18:39:51 -07:00
John Blum
545db32f6c Switch HTTP URLs to HTTPS in Apache License Headers. 2019-06-09 18:35:01 -07:00
John Blum
3458e7b506 Add integration tests asserting the proper interaction between an Apache Geode client and server process using the client/server integration test support. 2019-06-09 18:31:45 -07:00
John Blum
0ff45d4fd6 Disable the registration of the Mock Pool created by the Mock PoolFactory with the PoolManager. 2019-05-24 08:56:08 -07:00
John Blum
692455d2df Add support to register the Mock Pool created by the Mock PoolFactory with the PoolManager. 2019-05-24 08:53:07 -07:00
John Blum
881bce2a27 Add logging configuration for JUL, Log4j2 and SLF4J using Logback. 2019-05-13 16:43:38 -07:00
John Blum
e2b4d9deea Adapt to API and implementation changes in Apache Geode 1.9 (Pivotal GemFire 9.8) to extract the configured and provided gemfire.properties to (and using) the (Client)CacheFactory API from a Spring context (e.g. SDG). 2019-05-08 14:24:01 -07:00
John Blum
4a0e4b5ca4 Remove unnecessary 'throws Exception' declaration. 2019-05-08 14:20:43 -07:00
John Blum
a748cd9429 Add assertion asserting that the GemFireCache instance is not a GemFireCacheImpl (i.e. it is a mock). 2019-05-08 14:19:52 -07:00
Spring Operator
e4fb67fd99 URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener).

These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended.

* [ ] http://www.apache.org/licenses/ with 1 occurrences migrated to:
  https://www.apache.org/licenses/ ([https](https://www.apache.org/licenses/) result 200).
* [ ] http://www.apache.org/licenses/LICENSE-2.0 with 51 occurrences migrated to:
  https://www.apache.org/licenses/LICENSE-2.0 ([https](https://www.apache.org/licenses/LICENSE-2.0) result 200).

Resolves gh-5.
2019-04-04 17:00:56 -07:00
John Blum
2077e9faf0 Add additional test case asserting the ClientCache was mocked successfully. 2018-10-06 15:35:18 -07:00
John Blum
c174f008fe Fix Region AttributesMutator initialization bug.
The bug was caused by the mocking logic in Region.getAttributes(), which lazily initializes the RegionAttributes upon first access, and by extension, the Region AttributesMutator only gets intialized after the Region.getAttributes() method is invoked.  Therefore, if Region.getAttributesMutator() is called before Region.getAttributes() and any AttributesMutator method is invoked then a NullPointerException is thrown.
2018-08-08 18:42:40 -07:00
John Blum
1195c89ad0 Rename spring-test-data-gemfire module to spring-data-gemfire-test.
Rename spring-test-data-geode module to spring-data-geode-test.
2018-06-01 18:25:30 -07:00