Adding a simple test case to assert the contract and functional behavior of the <gfe:auto-region-lookup/> element when used in Spring context config coupled with GemFire's native cache.xml configuration file.

This commit is contained in:
John Blum
2014-08-30 14:44:58 -07:00
parent 920e53794e
commit cc9c724fbc
5 changed files with 104 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!DOCTYPE cache PUBLIC "-//GemStone Systems, Inc.//GemFire Declarative Caching 7.0//EN"
"http://www.gemstone.com/dtd/cache8_0.dtd">
<cache>
<region name="NativePartitionedRegion" refid="PARTITION"/>
<region name="NativeReplicateParent" refid="REPLICATE">
<region name="NativeReplicateChild" refid="REPLICATE">
<region name="NativeReplicateGrandchild" refid="REPLICATE"/>
</region>
</region>
</cache>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:gfe="http://www.springframework.org/schema/gemfire"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/gemfire http://www.springframework.org/schema/gemfire/spring-gemfire.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
">
<util:properties id="gemfireProperties">
<prop key="name">AutoRegionLookupIntegrationTests</prop>
<prop key="mcast-port">0</prop>
<prop key="log-level">warning</prop>
</util:properties>
<gfe:cache properties-ref="gemfireProperties" cache-xml-location="/autoregionlookup-cache.xml"/>
<gfe:partitioned-region id="SpringPartitionedRegion" persistent="false"/>
<gfe:replicated-region id="SpringReplicateParent" persistent="false">
<gfe:replicated-region name="SpringReplicateChild" persistent="false"/>
</gfe:replicated-region>
<gfe:auto-region-lookup/>
</beans>