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
868d168b5b
Polish and format source code.
2019-06-09 18:30:47 -07:00
John Blum
58a61d5ba6
Optimize imports.
2019-05-24 09:14:35 -07:00
John Blum
523d5f52d4
Remove the contextClass(:SpringApplicationBuilder) mmethod.
...
Add the newSpringApplicationBuilder(Class<?>[]) method.
Optimize imports.
2019-05-24 09:10:23 -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
b05c01a1ea
Optimize imports.
2019-05-08 14:27:58 -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
3ac182c765
Add test objects used in tests.
...
For example, the o.s.d.g.tests.objects.geode.security.TestSecurityManager is a test implementation of the o.a.g.security.SecurityManager interface.
2019-05-08 14:22:07 -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
John Blum
e5089813ff
Format source code.
...
Edit Javadoc.
2019-05-07 15:40:51 -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
Spring Operator
8b7055ef1b
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://geode.apache.org/ with 1 occurrences migrated to:
https://geode.apache.org/ ([https](https://geode.apache.org/ ) result 200).
* [ ] http://geode.apache.org/docs/guide/16/reference/topics/gemfire_properties.html with 1 occurrences migrated to:
https://geode.apache.org/docs/guide/16/reference/topics/gemfire_properties.html ([https](https://geode.apache.org/docs/guide/16/reference/topics/gemfire_properties.html ) result 200).
* [ ] http://projects.spring.io/spring-data-gemfire/ with 1 occurrences migrated to:
https://projects.spring.io/spring-data-gemfire/ ([https](https://projects.spring.io/spring-data-gemfire/ ) result 200).
Resolves gh-4.
2019-04-04 17:00:56 -07:00
John Blum
8abb4a9c4a
Optimize imports.
2018-12-19 16:49:38 -08:00
John Blum
55be4aaf7b
Add 'javax.net.ssl.*' System properties to the Predicate of identified System properties to clear before test execution.
2018-12-19 16:42:33 -08:00
John Blum
a59c77a602
Format source code.
2018-12-03 17:41:09 -08:00
John Blum
72043ec7e5
Rename the spring.data.gemfire.debugging.enabled property to spring.data.gemfire.test.debugging.enabled.
...
Rename the spring.data.gemfire.process.run-manual property to spring.data.gemfire.test.process.run-manual.
2018-12-03 17:40:40 -08:00
John Blum
e39631dc16
Add @AfterClass, static method to clear all GemfireBeanFactoryLocator references.
2018-12-03 17:38:38 -08:00
John Blum
499317f4ab
Rename withDeleteDirectoryOnExit(:boolean) to usingDeleteDirectoryOnExit(:boolean).
2018-11-28 17:32:45 -08:00
John Blum
321693da33
Add single, constant, class member reference to an instance of IdentityHashCodeComparator.
2018-11-28 17:24:24 -08:00
John Blum
6a3e21e93c
Add method to set the 'spring.data.gemfire.test.directory.delete-on-exit' System property from a test class.
2018-11-28 17:23:16 -08:00
John Blum
c97690893f
Add new java.util.Comparator implementation supporting Object identity comparisons.
...
Add new java.util.Comparator implementation supporting Object identity hash code comparisons.
Add new java.util.Comparator implementation supporting (Serializable Object to) byte array comparisons.
2018-11-28 14:32:34 -08:00
John Blum
76f11970f5
Improve logic around resolving a Stack Trace (dump) for (test) tracing and debugging purposes.
...
Include support for generating a universal trace identifier (UTID).
Include support to conditionally enabling and disabling tracing.
Fix incorrect usage of StackTraceElement.getClass().
Add public methods to resolve the class type and method in a StackTraceElement.
2018-11-28 14:32:34 -08:00
John Blum
1b5f8e22d2
Change the 'port' method parameter, @Value annotation configuration of the 'spring.data.gemfire.cache.server.port' property to use CacheServer.DEFAULT_PORT as the default value.
2018-11-05 22:47:16 -08:00
John Blum
8ff823b268
Add configuration for the 'spring.data.gemfire.pool.servers' property to automatically connect client and server in client/server integration tests.
2018-11-05 22:41:41 -08:00
John Blum
c09f1f722c
Add @Before test case setup method to enable GemFire/Geode OQL query debugging.
...
Add @AfterClass test class tear down method to unregister all GemFire/Geode DataSerializers.
Move integration tests support methods for creating directories, converting class and package names to resource pathnames, locating Spring application context XML configuration files, logging System properties and configuring GemFire/Geode logging from the ClientServerIntegrationTestsSupport class to the IntegrationTestsSupport class.
2018-11-05 19:20:34 -08:00
John Blum
8f6b7d6364
Guard against null access on ClientCache.getCurrentServers() by initializing the 'DEFAULT' Pool.
2018-10-06 16:28:17 -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
e372410f29
Add capability to configure the Spring Boot, SpringApplicationBuilder.contextClass(..).
2018-10-05 17:53:00 -07:00
John Blum
7c99575ed4
Add mock object for o.a.g.distributed.DistributedMember.
2018-10-02 15:39:07 -07:00
John Blum
8d82fd8807
Do not mock Pool.socketConnectTimeout and Pool.subscriptionTimeoutMultiplier with SD Kay.
2018-09-19 17:50:56 -07:00
John Blum
66e3c1e46b
Add lenient MockSettings for mock RegionAttributes.
2018-09-19 17:06:05 -07:00
John Blum
c77ee37c70
Do not mock GatewayReceiver.hostnameForClients with SD Kay.
2018-09-19 16:06:29 -07:00
John Blum
8625d89a9c
Fix mock ServerMetrics getMaxConnections() and getSubscriptionConnectionCount() return values.
2018-09-19 13:04:22 -07:00
John Blum
a233949add
Add mocking support for o.a.g.cache.server.CacheServer.getLoadProbe() and o.a.g.cache.server.CacheServer.setLoadProbe(:ServerLoadProbe).
2018-09-19 12:03:52 -07:00
John Blum
4ea6c3921d
Add MockSettings to all mock objects.
...
Set mock objects to lenient and not strict stubbing.
2018-09-19 11:19:52 -07:00
John Blum
9e51e631c7
Fix missing mock hostnameForClients return value.
...
Prevent mocking for null ClientSubscriptionConfig and ServerLoadProbe objects.
2018-09-19 10:58:01 -07:00
John Blum
8eb2321dca
Fix unnecessary Region mocking when no Regions exist.
2018-09-19 10:20:44 -07:00
John Blum
797eda1494
Refactor mockGemFireCache(..) and make public; add null check and mock the GemFireCache when mockGemFireCache argument is null.
...
Add mockResourceManager(..) method.
2018-09-19 09:20:23 -07:00
John Blum
9523d37272
Add mock object support for mocking Apache Geode/Pivotal GemFire Cache, Distributed System, ResourceManager and Region objects.
2018-09-19 09:01:43 -07:00
John Blum
d3dcb94c78
Edit Javadoc.
2018-09-18 20:53:27 -07:00