John Blum
14a3b73add
Add test.properties to spring-geode-autoconfigure module to configure Apache Geode behavior (JTA) at (prior to) test runtime / execution.
2022-02-10 16:37:57 -08:00
John Blum
4c399330b5
Remove the 'geode.home' System property configuration in Integration Tests.
...
The 'geode.home' System property configuration was used to resolve the Apache Geode Management (Admin) REST API interface WAR file, which is not resolved the application / test runtime classpath.
2022-02-10 16:37:57 -08:00
John Blum
75b37bbf59
Remove supplied Apache Geode geode-web-1.11.0.war file from spring-geode-autoconfigure module.
...
The Apache Geode WAR file containing the Web application for the Management (Admin) REST API interface is resolvable from the application / test runtime classpath when the org.apache.geode:geode-web module is on the classpath.
Therefore, the project supplied Apache Geode WAR file is no longer necessary.
2022-02-10 16:37:57 -08:00
John Blum
55ffae046c
Replace testRuntime configuration with testRuntimeOnly.
2022-02-10 16:37:57 -08:00
John Blum
a069263ca5
Replace Java EE 8 with Jakarta EE 9 bits.
...
Replace all javax package namespace imports with jakarta packages.
Declare the jakarta.annotations:jakarta.annotations-api dependency in the spring-geode-autoconfigure module.
2022-01-27 17:36:33 -08:00
John Blum
62d88ff34e
Upgrade to FreeFair Lombok Gradle Plugin 6.3.0.
2022-01-27 17:11:15 -08:00
John Blum
c986789e87
Remove application of maven-pom-editor Gradle build script from SBDG Gradle Spring modules.
2022-01-27 16:58:04 -08:00
John Blum
3640e1c2a8
Adapt all SBDG module Gradle build files to Gradle 7.3.
2022-01-27 16:55:53 -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