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:
12
src/test/resources/autoregionlookup-cache.xml
Normal file
12
src/test/resources/autoregionlookup-cache.xml
Normal 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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user