Change assertion on cache instance to assert as a peer cache.

This commit is contained in:
John Blum
2021-03-23 12:35:57 -07:00
parent 33e129b792
commit 1a4e9c22ac

View File

@@ -67,7 +67,7 @@ public class SpringBootApacheGeodePeerCacheApplicationIntegrationTests extends I
public void peerCacheWithPeerLocalRegionAreAvailable() {
Optional.ofNullable(this.peerCache)
.map(it -> assertThat(GemfireUtils.isClient(it)).isFalse())
.map(it -> assertThat(GemfireUtils.isPeer(it)).isTrue())
.orElseThrow(() -> newIllegalStateException("Peer cache was null"));
Region<Object, Object> example = this.peerCache.getRegion("/Example");