John Blum
d65dd679c2
Add overloaded waitOn(..) method to supply Condition, duration and interval.
2018-08-21 19:55:10 -07:00
John Blum
7718b8d8b2
Fix waitOnServerToStart(..) return statement to correctly return 'connected.get()'.
2018-08-21 19:55:09 -07:00
John Blum
8bd76409f8
Refactor the clientCachePoolSocketConnectTimeoutBeanPostProcessor bean definition to be conditional on the presence of the setSocketConnectTimeout(:int) method on the ClientCacheFactoryBean class.
2018-08-21 19:55:02 -07:00
John Blum
62acd73133
Refactor and compose the ClientCache DEFAULT Pool and any explicit Pool Socket connect timeout configuration handlers into a single BeanPostProcessor.
...
Register the ClientMembershipListener in a void, @PostConstruct, SubscriptionEnabledClientServerIntegrationTestsConfiguration class method.
Re-implement isProxyClientRegion(..) to short circuit if the ClientRegionFactoryBean.poolName is set.
Remove the unneeded isProxyClientRegion(:ClientRegionShortcut) method.
Rename isProxyClientRegion(..) to isClientProxyRegion(..).
2018-08-14 16:46:26 -07:00
John Blum
86dd856b6b
Edit Javadoc.
2018-08-14 16:36:04 -07:00
John Blum
75772ee1d4
Re-implement findAvailablePort() to setReuseAddress to true before creating and binding the Socket.
...
Re-implement waitForServerToStart(host:String, port:int) to call waitOn(:Condition, duration).
2018-08-14 16:34:55 -07:00
John Blum
f83692b82e
Rename clearAllSpringApacheGeodeAndPivotalGemFireDotPrefixedSystemProperties to clearAllGemFireGeodeAndSpringDotPrefixedSystemProperties.
2018-08-14 16:32:30 -07:00
John Blum
889368868e
Reverse order of client-server connectivity verification by first handling the memberJoined event followed by successful Subscription Queue initialization.
...
Add methods to override the default Socket connect timeout and general timeout via extension.
Add ClientCacheConfigurer to configure the ClientCache, DEFAULT Pool Socket.connect(..) timeout.
Add BeanPostProcessor to configure any PoolFactoryBean.socketConnectTimeout.
2018-08-14 00:42:16 -07:00
John Blum
e3bc02d419
Add static @Configuration class to configure an embedded Locator & Manager service, enabled via a Spring profile.
...
Additionally, enable GemFire/Geode logging at 'config'.
2018-08-13 15:28:34 -07:00
John Blum
640218dc1f
Add Condition on propertyPlaceholderConfigurer bean definition verifying that Spring Boot is absent before registering the bean.
2018-08-13 13:13:39 -07:00
John Blum
5fd1382a50
Rename shouldVerifyGemFireServerIsRunning(..) to doVerifyGemFireServerIsRunning(..).
...
Rename isBeanOfImportance(..) to isVeryImportantBean(..).
Format source code.
2018-08-13 13:13:39 -07:00
John Blum
80d09144b4
Add static PropertySourcesPlaceholderConfigurer bean definition for resolving Spring @Value annotation property placeholders.
2018-08-13 13:13:30 -07:00
John Blum
68b25ebdb9
Add overridable, protected processBeforeRefresh(:ConfigurableApplicationContext):ConfigurableApplicationContext method and call in the newApplicationContext(..) method before the ApplicationContext is refreshed.
2018-08-13 13:02:07 -07:00
John Blum
138b0b57aa
Rename clearAllSpringGeodeGemFireDotPrefixedSystemProperties to clearAllSpringApacheGeodeAndPivotalGemFireDotPrefixedSystemProperties.
2018-08-13 13:00:21 -07:00
John Blum
61823ec845
Upgrade to Gradle 4.9.
2018-08-08 18:56:38 -07:00
John Blum
20b822d52f
Upgrade to Apache Maven 3.5.4.
2018-08-08 18:56:28 -07:00
John Blum
64764d2829
Upgrade to Mockito 2.19.1.
...
Upgrade to Pivotal GemFire 9.5.1.
Upgrade to Spring Framework 5.1.0.RC1.
Upgrade to Spring Boot 2.1.0.M1.
Upgrade to Spring Data for Apache Geode 2.1.0.RC1.
Upgrade to Spring Data for Pivotal GemFire 2.1.0.RC1.
Upgrade to Spring Data Release Train Lovelace-RC1.
2018-08-08 18:51:42 -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
eae35daef5
Fix closeApplicationContext() JUnit after test case method test callback to use @After annotation rather than @AfterClass.
2018-06-21 17:30:58 -07:00
John Blum
3488c5c41f
Upgrade to Gradle 4.8.
2018-06-21 17:14:18 -07:00
John Blum
6b1fcbc657
Add Integration Tests support for configuring, bootstrapping and properly closing a Spring ApplicationContext.
2018-06-21 17:10:22 -07:00
John Blum
9e7e57ec69
Upgrade to Spring Boot 2.1.0.BUILD-SNAPSHOT.
2018-06-21 17:07:24 -07:00
John Blum
4d806f089c
Upgrade to Apache Geode 1.6.0.
...
Upgrade to AssertJ 3.10.0.
Upgrade to Lombok 1.18.0.
Upgrade to Mockito 2.19.0.
Upgrade to Pivotal GemFire 9.5.0.
Upgrade to Spring Framework 5.0.7.RELEASE.
Upgrade to Spring Boot 2.0.3.RELEASE.
Remove Spring IO Platform version property.
2018-06-21 16:46:10 -07:00
John Blum
9867a51bb1
Switch dependency management to Spring Boot Dependencies BOM to manage all project dependency versions.
2018-06-21 16:43:41 -07:00
John Blum
3eb2639ef1
Upgrade to Spring Build Conventions Gradle Plugin 0.0.16.RELEASE.
2018-06-21 16:42:58 -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
John Blum
827383e5f2
Format source code.
2018-06-01 18:10:55 -07:00
John Blum
6e5d14499b
Increase timeout for subscription-based connections in client/server integration tests to 30 seconds.
2018-05-31 14:08:04 -07:00
John Blum
e0acf8254d
Unit test GemFire Mock Object destruction at the end of test execution.
2018-05-31 12:51:20 -07:00
John Blum
f543fb5d13
Add test suite tear down method (hook) to properly release GemFire Mock Object resources.
2018-05-31 12:30:16 -07:00
John Blum
982f4fe850
Cache constructed GemFire Mock Objects and destroy the 'disposable' objects properly at the end of test execution.
2018-05-31 12:29:37 -07:00
John Blum
dd20792db7
Instantiate Apache Geode/Pivotal GemFire objects declared in (System) properties.
2018-05-30 16:28:14 -07:00
John Blum
e05d0a4b6b
Provide abstract base class implementation of the o.a.g.security.SecurityManager interface.
2018-05-30 16:27:39 -07:00
John Blum
4f61c6e94f
Rename o.s.d.g.MockClientCacheApplicationTest to MockClientCacheApplicationIntegrationTests.
2018-05-30 15:03:08 -07:00
John Blum
a5d54623ed
Add support to capture/store the Apache Geode/Pivotal GemFire (System) Properties from the CacheFactory and ClientCacheFactory classes, respectively.
2018-05-30 13:59:52 -07:00
John Blum
f67bb83d2c
Add after test class clean up to clear all Spring, Pivotal GemFire and Apache Geode System properties.
2018-05-30 13:58:47 -07:00
John Blum
8d91a2a31d
Add test suite setup logic to clear any existing Apache Geode/Pivotal GemFire network Socket configuration.
...
Rename clearAllSpringPrefixedSystemProperties() to clearAllSpringDotPrefixedSystemProperties.
2018-05-29 19:22:15 -07:00
John Blum
363a146952
Rename clearSpringSystemProperties() to clearAllSpringPrefixedSystemProperties().
...
Annotate clearAllSpringPrefixedSystemProperties() to execute BeforeClass (i.e. pre-test execution).
2018-05-29 08:58:09 -07:00
John Blum
1dfdbada7c
Clear all 'spring.*' prefixed System properties after integration tests.
2018-05-28 23:30:31 -07:00
John Blum
d2fa7e8751
Do null-safe Apache Geode/Pivotal GemFire Server Process stop inside test suite tear down method.
2018-05-27 02:06:46 -07:00
John Blum
94f4cf6a59
Rename to SubscriptionEnabledClientServerIntegrationTestsConfiguration.
...
Add configuration flag to determine whether when a ClientCache subscription queue connection failure occurs a RuntimeException is thrown or the illegal state is simply logged.
2018-05-27 01:49:53 -07:00
John Blum
da4025af02
Add logging support.
2018-05-27 01:36:48 -07:00
John Blum
c9525f135f
Add support for an argument list when forking the Apache Geode/Pivotal GemFire server.
2018-05-27 00:18:50 -07:00
John Blum
b63dcd7806
Fix Javadoc link.
2018-05-26 23:45:52 -07:00
John Blum
c0efb856a5
Add test suite tear down logic to stop the forked Apache Geode/Pivotal GemFire Server.
...
Add test suite tear down logic to clear the CacheServer port System property.
Add test suite method to fork the Apache Geode/Pivotal GemFire Server given a Spring configuration class.
Add static class method to find an available port and set the CacheServer port System property.
Provide base Spring configuration classes with PDX enabled for client and servers.
2018-05-26 23:43:12 -07:00
John Blum
d29a295ec4
Add a base ClientServerIntegrationTestsConfiguration class with support to configure the ClientCache Pool port and CacheServer port using SDG Configurers registered as bean definitions in the Spring context.
...
Refactor SubscriptionEnabledClientServerIntegrationTestsConfiguration to extend ClientServerIntegrationTestsConfiguration.
2018-05-26 23:34:29 -07:00
John Blum
89731d7d31
Re-write integration test logic verifying subscription queue connections have been established between client and server.
2018-05-26 19:33:38 -07:00
John Blum
79769628e7
Install Maven Wrapper using Apache Maven 3.5.3.
2018-05-26 18:38:38 -07:00
John Blum
ef0596755e
Add support for ContinuousQueryListenerContainer and Pool beans in addition to Region beans.
2018-05-26 18:38:38 -07:00
John Blum
d81949074b
Rename doSafeOperation(..) methods to doOperationSafely(..).
...
Annotate the ExceptionThrowingOperation interface with @FunctionalInterface.
Catch and handle Throwable in rethrowAsRuntimeException(:ExceptionThrowingOpeation).
2018-05-26 18:38:38 -07:00