From ff11bd384dff997ede08807520e22773335ffae8 Mon Sep 17 00:00:00 2001 From: John Blum Date: Tue, 24 Jun 2014 19:07:55 -0700 Subject: [PATCH] Fixed message in assertion and overrode the assertInitialized method of LazyWiringDeclarableSupport in the inner, static UserDataStoreCacheLoader test class to properly assert that the Spring defined DataSource dependency was properly configured. --- ...ContextBootstrappingInitializerIntegrationTest.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java b/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java index 478cfd26..905ace5f 100644 --- a/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java +++ b/src/test/java/org/springframework/data/gemfire/support/SpringContextBootstrappingInitializerIntegrationTest.java @@ -154,7 +154,7 @@ public class SpringContextBootstrappingInitializerIntegrationTest { .create(); assertNotNull("The GemFire Cache was not properly created or initialized!", gemfireCache); - assertFalse("The GemFire Cache is close!", gemfireCache.isClosed()); + assertFalse("The GemFire Cache is closed!", gemfireCache.isClosed()); Set> rootRegions = gemfireCache.rootRegions(); @@ -258,6 +258,14 @@ public class SpringContextBootstrappingInitializerIntegrationTest { getClass().getName())); } + @Override + protected void assertInitialized() { + super.assertInitialized(); + Assert.state(userDataSource != null, String.format( + "The 'User' Data Source was not properly configured and initialized for use in (%1$s!)", + getClass().getName())); + } + protected DataSource getDataSource() { return userDataSource; }