Package org.springframework.data.gemfire.client

Examples of org.springframework.data.gemfire.client.ClientRegionFactoryBean


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

    ClientRegionFactoryBean emptyClientRegionFactoryBean = context.getBean("&empty", ClientRegionFactoryBean.class);

    assertNotNull(emptyClientRegionFactoryBean);
    assertEquals(DataPolicy.EMPTY, TestUtils.readField("dataPolicy", emptyClientRegionFactoryBean));
    assertEquals("empty", TestUtils.readField("beanName", emptyClientRegionFactoryBean));
    assertEquals("Publisher", TestUtils.readField("name", emptyClientRegionFactoryBean));
View Full Code Here


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

    ClientRegionFactoryBean complexClientRegionFactoryBean = context.getBean("&complex", ClientRegionFactoryBean.class);

    assertNotNull(complexClientRegionFactoryBean);

    CacheListener[] cacheListeners = TestUtils.readField("cacheListeners", complexClientRegionFactoryBean);
View Full Code Here

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

    ClientRegionFactoryBean overflowClientRegionFactoryBean = context.getBean("&overflow", ClientRegionFactoryBean.class);

    assertNotNull(overflowClientRegionFactoryBean);
    assertEquals("diskStore", TestUtils.readField("diskStoreName", overflowClientRegionFactoryBean));
    assertEquals("gemfire-pool", TestUtils.readField("poolName", overflowClientRegionFactoryBean));
View Full Code Here

  @Test
  public void testClientRegionWithCacheLoaderAndCacheWriter() throws Exception {
    assertTrue(context.containsBean("loadWithWrite"));

    ClientRegionFactoryBean factory = context.getBean("&loadWithWrite", ClientRegionFactoryBean.class);

    assertNotNull(factory);
    assertEquals("LoadedFullOfWrites", TestUtils.readField("name", factory));
    assertEquals(ClientRegionShortcut.LOCAL, TestUtils.readField("shortcut", factory));
    assertTrue(TestUtils.readField("cacheLoader", factory) instanceof TestCacheLoader);
View Full Code Here

TOP

Related Classes of org.springframework.data.gemfire.client.ClientRegionFactoryBean

Copyright © 2018 www.massapicom. 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.