Examples of RegionFactoryBean


Examples of org.springframework.data.gemfire.RegionFactoryBean

 
  @SuppressWarnings("rawtypes")
  @Test
  public void testRRSubscriptionAllPolicy() throws Exception {
    assertTrue(context.containsBean("replicALL"));
    RegionFactoryBean fb = context.getBean("&replicALL", RegionFactoryBean.class);
    RegionAttributes attrs = TestUtils.readField("attributes", fb);
   
    SubscriptionAttributes sa = attrs.getSubscriptionAttributes();
    assertEquals(InterestPolicy.ALL, sa.getInterestPolicy() );
  }
View Full Code Here

Examples of org.springframework.data.gemfire.RegionFactoryBean

  @SuppressWarnings("rawtypes")
  @Test
  public void testPRSubscriptionCacheContentPolicy() throws Exception {
    assertTrue(context.containsBean("partCACHE_CONTENT"));
    RegionFactoryBean fb = context.getBean("&partCACHE_CONTENT", RegionFactoryBean.class);
    RegionAttributes attrs = TestUtils.readField("attributes", fb);
   
    SubscriptionAttributes sa = attrs.getSubscriptionAttributes();
    assertEquals(InterestPolicy.CACHE_CONTENT, sa.getInterestPolicy() );
  }
View Full Code Here

Examples of org.springframework.data.gemfire.RegionFactoryBean

 
  @SuppressWarnings("rawtypes")
  @Test
  public void testPRSubscriptionDefaultPolicy() throws Exception {
    assertTrue(context.containsBean("partDEFAULT"));
    RegionFactoryBean fb = context.getBean("&partDEFAULT", RegionFactoryBean.class);
    RegionAttributes attrs = TestUtils.readField("attributes", fb);
   
    SubscriptionAttributes sa = attrs.getSubscriptionAttributes();
    assertEquals(InterestPolicy.ALL, sa.getInterestPolicy() );
  }
View Full Code Here

Examples of org.springframework.data.gemfire.RegionFactoryBean

  @Test
  public void testSimpleReplicateRegion() throws Exception {
    assertTrue(context.containsBean("simple"));

    RegionFactoryBean simpleRegionFactoryBean = context.getBean("&simple", RegionFactoryBean.class);

    assertEquals("simple", TestUtils.readField("beanName", simpleRegionFactoryBean));
    assertEquals(false, TestUtils.readField("close", simpleRegionFactoryBean));
    assertNull(TestUtils.readField("scope", simpleRegionFactoryBean));
View Full Code Here

Examples of org.springframework.data.gemfire.RegionFactoryBean

  @Test
  @SuppressWarnings({ "deprecation", "rawtypes" })
  public void testPublishReplicateRegion() throws Exception {
    assertTrue(context.containsBean("pub"));

    RegionFactoryBean publisherRegionFactoryBean = context.getBean("&pub", RegionFactoryBean.class);

    assertTrue(publisherRegionFactoryBean instanceof ReplicatedRegionFactoryBean);
    assertEquals("publisher", TestUtils.readField("name", publisherRegionFactoryBean));
    assertEquals(Scope.DISTRIBUTED_ACK, TestUtils.readField("scope", publisherRegionFactoryBean));
View Full Code Here

Examples of org.springframework.data.gemfire.RegionFactoryBean

  @Test
  @SuppressWarnings("rawtypes")
  public void testComplexReplicateRegion() throws Exception {
    assertTrue(context.containsBean("complex"));

    RegionFactoryBean complexRegionFactoryBean = context.getBean("&complex", RegionFactoryBean.class);

    assertNotNull(complexRegionFactoryBean);
    assertEquals("complex", TestUtils.readField("beanName", complexRegionFactoryBean));

    CacheListener[] cacheListeners = TestUtils.readField("cacheListeners", complexRegionFactoryBean);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.