From a748cd9429794552632db6dad09f5ec884084c18 Mon Sep 17 00:00:00 2001 From: John Blum Date: Wed, 8 May 2019 14:19:52 -0700 Subject: [PATCH] Add assertion asserting that the GemFireCache instance is not a GemFireCacheImpl (i.e. it is a mock). --- .../gemfire/MockClientCacheApplicationIntegrationTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-data-geode-test/src/test/java/org/springframework/data/gemfire/MockClientCacheApplicationIntegrationTests.java b/spring-data-geode-test/src/test/java/org/springframework/data/gemfire/MockClientCacheApplicationIntegrationTests.java index 248acb5..8f7bedd 100644 --- a/spring-data-geode-test/src/test/java/org/springframework/data/gemfire/MockClientCacheApplicationIntegrationTests.java +++ b/spring-data-geode-test/src/test/java/org/springframework/data/gemfire/MockClientCacheApplicationIntegrationTests.java @@ -13,7 +13,6 @@ * or implied. See the License for the specific language governing * permissions and limitations under the License. */ - package org.springframework.data.gemfire; import static org.assertj.core.api.Assertions.assertThat; @@ -26,6 +25,7 @@ import org.apache.geode.cache.GemFireCache; import org.apache.geode.cache.Region; import org.apache.geode.cache.client.ClientCache; import org.apache.geode.cache.client.ClientRegionShortcut; +import org.apache.geode.internal.cache.GemFireCacheImpl; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -69,6 +69,7 @@ public class MockClientCacheApplicationIntegrationTests { assertThat(this.clientCache).isNotNull(); assertThat(this.clientCache).isInstanceOf(ClientCache.class); + assertThat(this.clientCache).isNotInstanceOf(GemFireCacheImpl.class); assertThat(this.clientCache.isClosed()).isFalse(); Set> rootRegions = this.clientCache.rootRegions();