Package org.springframework.data.gemfire.client

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


  @Test
  public void testNamedClientCache() throws Exception {
    assertTrue(context.containsBean("client-cache-with-name"));

    ClientCacheFactoryBean clientCacheFactoryBean = context.getBean("&client-cache-with-name", ClientCacheFactoryBean.class);

    assertNull(TestUtils.readField("cacheXml", clientCacheFactoryBean));

    Properties gemfireProperties = clientCacheFactoryBean.getProperties();

    assertNotNull(gemfireProperties);
    assertTrue(gemfireProperties.isEmpty());
  }
View Full Code Here


  @Test
  public void testClientCacheWithXml() throws Exception {
    assertTrue(context.containsBean("client-cache-with-xml"));

    ClientCacheFactoryBean clientCacheFactoryBean = context.getBean("&client-cache-with-xml", ClientCacheFactoryBean.class);
    Resource cacheXmlResource = TestUtils.readField("cacheXml", clientCacheFactoryBean);

    assertEquals("gemfire-client-cache.xml", cacheXmlResource.getFilename());

    Properties gemfireProperties = clientCacheFactoryBean.getProperties();

    assertNotNull(gemfireProperties);
    assertTrue(gemfireProperties.isEmpty());
  }
View Full Code Here

TOP

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

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.