Commit Graph

237 Commits

Author SHA1 Message Date
John Blum
a714877e22 Fix bug when parsing Spring Boot, spring.session.timeout property with java.time.Duration styling.
Resolves gh-113.
2022-03-02 16:16:09 -08:00
John Blum
9821a1e277 Update Copyright for 2022. 2022-03-02 16:16:01 -08:00
John Blum
841381d902 Update test Keystore for SSL based tests to use RSA certs. 2021-09-28 16:30:29 -07:00
John Blum
d5e2ed78c2 Add additional test case for the auto-configuration of a GemfireTemplate bean given a Region (FactoryBean) bean definition using a strongly typed, complex object/entity. 2021-09-01 12:00:10 -07:00
John Blum
a9594d4bad Replace all Spring @Configuration annotations with Spring Boot's @SpringBootConfiguration annotation in the SBDG auto-configuration classes. 2021-08-19 14:48:59 -07:00
John Blum
1ab774daba Add additional test case for the auto-configuration of a GemfireTemplate bean given a Region (FactoryBean) bean definition using a generic signature. 2021-08-18 14:54:37 -07:00
John Blum
389feac355 Refactor tests for GemfireTemplate auto-configuration. 2021-08-18 14:09:59 -07:00
John Blum
b473d80ed8 Replace Spring's @Configuration annotation with Spring Boot's @Configuration annotation. 2021-08-18 12:06:11 -07:00
John Blum
2ce7175663 Fix compiler warning.
Declare User.name constant (immutable) field as final.
2021-03-30 16:11:54 -07:00
John Blum
3306de1f03 Randomize Locator network ports. 2021-03-30 16:09:47 -07:00
John Blum
c87dca7d74 Add additional SLF4J Logback Loggers for Apache Geode & Spring Geode along with distinguishing the Loggers by name. 2021-03-30 16:09:25 -07:00
John Blum
a907395364 Rename application-vcap.properties to application-vcap-cloud.properties. 2021-03-30 13:38:33 -07:00
John Blum
bdd2c1bc29 Declare 'vcapApplicationProperties' class member field as final.
Declare 'loadVcapApplicationProperties()' and 'unsetTestAutoConfiguredPoolServersPortSystemProperty()' methods as private.
2021-03-30 13:23:36 -07:00
John Blum
942b504a38 Fix compiler warnings.
Declare the TestHttpBasicAuthenticationSecurityConfiguration instance field as final.
2021-03-30 13:04:02 -07:00
John Blum
61af587a0d Refactor all Unit & Integration Tests starting a Spring container with SpringRunner to extend STDG's IntegrationTestsSupport. 2021-03-30 11:25:08 -07:00
John Blum
6df435ce44 Include an Apache Geode client/server Integration Test demonstrating Integration Testing with STDG, bootstrapped and configured with SBDG. 2021-03-25 01:28:24 -07:00
John Blum
dd0ced6041 Create Test Suite class to run (execute) a select grouping of tests. 2021-03-25 00:56:41 -07:00
John Blum
dfab4669d8 Fix generic typing on Session.getAttribute(attributeName) call. 2021-03-24 21:40:06 -07:00
John Blum
8f6a38ae81 Reset the ClusterAwareConfiguration.ClusterAwareCondition before & after test class (suite) execution.
Refactor the test case method names in the ClusterConfigurationWhenNonSecureClusterAvailableIntegrationTests class to be apparent that HTTPS is *not* required.
2021-03-24 21:28:24 -07:00
John Blum
430c2097a9 Reinstate (apply) Spring's @DirtiesContext annotation.
Additionally, declare before & after class setup/tear down proceduce to reset the ClusterAwareConfiguration.ClusterAwareCondition.
2021-03-24 16:03:00 -07:00
John Blum
376dee3d98 Edit Javadoc. 2021-03-24 15:54:41 -07:00
John Blum
d8fc2a4678 Use GemFire Mock Objects. 2021-03-24 15:54:35 -07:00
John Blum
dd5e9802a4 Use static import for the AssertJ Assertions class, assertThat(..) method. 2021-03-24 15:51:34 -07:00
John Blum
ec40028a0e Cleanup raw types usage. 2021-03-24 15:51:19 -07:00
John Blum
f1c33b9b22 Add additional assertion on Region name, equal to 'Books'. 2021-03-24 15:50:40 -07:00
John Blum
427694d45f Refactor and polish codebase.
Fix compiler warnings.

Declare Properties class fields containing VCAP_APPLICATION properties as final.
2021-03-24 15:50:15 -07:00
John Blum
21820e689d Remove unnecessary use of Spring's @DirtiesContext annotation.
Fix compiler wwarnings; make immutable instance fields final.

Rearrange Spring test annotation declarations.
2021-03-24 15:48:19 -07:00
John Blum
a0827eebf8 Fix compiler warnings.
Make Function instance fields final.
2021-03-24 15:45:47 -07:00
John Blum
1a4e9c22ac Change assertion on cache instance to assert as a peer cache. 2021-03-24 15:44:10 -07:00
John Blum
33e129b792 Fix try-catch block to appropriately handle the intentional AssertJ AsesrtionFailedError and unintentional Java AssertionError.
Fixes test failures caused by erroneous AssertionError and AssertionFailedError handling.

Apply Spring's @NonNull annotation to the test methods.

Add assertion for the threadLocalConnections property on customized Pool objects.

Format source code.

Rename the usingClientCacheDefaultPoolPropertiesModifiesDefaultPool() test case method to usingClientCacheDefaultPoolPropertiesConfigurationModifiesDefaultPool().
2021-03-24 15:41:35 -07:00
John Blum
002e60d26a Fix VCAP_APPLICATION name to match the test class name. 2021-03-23 12:37:06 -07:00
John Blum
bba6e61011 Add additional assertions asserting that the 'Books' (client) Region DataPolicy is configured correctly.
Additionally, assert that the 'spring.data.gemfire.cache.client.region.shortcut' is not set (and specifically not set to 'LOCAL').
2021-01-20 14:10:28 -08:00
John Blum
06a19a0787 Add Logger configuration for 'org.springframework.geode.config.annotation.ClusterAwareConfiguration'. 2021-01-20 14:08:14 -08:00
John Blum
62848e9277 Polish the SecureClusterAwareConfigurationIntegrationTests.
Resolves gh-57.
2021-01-15 12:51:57 -08:00
John Blum
4a20f7be61 Support awareness and discovery of secure (Auth and SSL eanbled) Apache Geode clusters using @EnableClusterAware annotation functionality.
Improves log details about the runtime environment (e.g. cloud, standalone/self-managed).

Resolves gh-57.

Resolves gh-99.
2021-01-15 01:32:48 -08:00
John Blum
d08525708b Move Cluster Configuration Integration Tests to the org.springframework.geode.boot.autoconfigure.cluster.config package. 2021-01-14 21:57:04 -08:00
John Blum
03fb54d83a Upgrade to Freefair Lombok Gradle Plugin 5.3.0. 2020-12-09 12:56:04 -08:00
John Blum
55d9b52e1a Add Integration Test testing the configuration and expected behavior of (HTTP) Session state caching using Spring Session with Apache Geode and Mock Objects auto-configured with Spring Boot. 2020-11-04 16:50:48 -08:00
John Blum
9e1501327e Annotate test class with @SuppressWarnings('unused'). 2020-11-04 16:27:29 -08:00
John Blum
09d15e87c2 Upgrade to FreeFair Lombok Gradle Plugin 5.2.1. 2020-09-18 02:33:58 -07:00
John Blum
2aaaea76bf Remove exclude from Apache Geode dependencies on 'org.apache.logging.log4j:log4j-core'.
Resolves gh-48.
2020-09-18 02:33:58 -07:00
John Blum
74c4bdbcd9 Remove exclude from Apache Geode dependencies on 'javax.servlet:javax.servlet-api'.
Resolves gh-49.
2020-09-18 02:33:58 -07:00
John Blum
d1147415c2 Remvove all properties (configuration file) references to 'Pivotal GemFire' or 'GemFire' in general. 2020-09-17 21:28:48 -07:00
John Blum
cb34cd2201 Remove all source code (Javadoc) references to 'Pivotal GemFire' or 'GemFire' in general. 2020-09-17 21:24:16 -07:00
John Blum
68e37b7276 Cleanup use of the deprecated SpringBoot, SpringApplicationBuilder.contextClass(:Class) API.
Replace with SpringApplicationBuilder.contextFactory(ApplicationContextFactory.ofContextClass(:Class)).
2020-08-19 20:05:35 -07:00
John Blum
20fed2b4c0 Adapt to API changes in the STDG 0.0.17.RELEASE.
Specifically, change '@EnableGemFireMockObjects' annotation, 'destroyOnEvent' attribute references to 'destoryOnEvents'.
2020-07-27 00:49:33 -07:00
John Blum
20b8c2d172 Cleanup all unsafe and unchecked compiler warnings. 2020-07-23 14:57:01 -07:00
John Blum
ba24c50ba2 Cleanup uses and/or overrides of Apache Geode, Spring and Test Framework (e.g. Mockito) deprecated APIs. 2020-07-23 14:57:09 -07:00
John Blum
5ca11cbc44 Declare 'com.google.code.findbugs:jsr305' as a compileOnly/testCompileOnly depedency to cleanup Gradle build warnings.
Without this dependency the Gradle build logs warnings about:

> Task :spring-geode-autoconfigure:compileTestJava
warning: unknown enum constant When.MAYBE
  reason: class file for javax.annotation.meta.When not found
...
2020-07-23 14:57:01 -07:00
John Blum
6fc18bc449 Extend STDG's o.s.d.g.tests.integration.IntegrationTestsSupport base class. 2020-07-23 13:42:51 -07:00