Package com.gemstone.gemfire.cache.util

Examples of com.gemstone.gemfire.cache.util.GatewayHub


  @SuppressWarnings("rawtypes")
  @Test
  public void testGatewaysInGemfire() {
    Cache cache = ctx.getBean("gemfireCache", Cache.class);
    GatewayHub gwh = cache.getGatewayHub("gateway-hub");
    assertNotNull(gwh);

    Region region = ctx.getBean("region-with-gateway", Region.class);
    assertTrue(region.getAttributes().getEnableGateway());
    assertEquals("gateway-hub", region.getAttributes().getGatewayHubId());
View Full Code Here


  GatewayHub mockGatewayHub() {
    final Gateway gateway = mock(Gateway.class);

      when(gateway.getQueueAttributes()).thenReturn(mock(GatewayQueueAttributes.class));

    GatewayHub gatewayHub = mock(GatewayHub.class);

    when(gatewayHub.addGateway(anyString(),anyInt())).thenAnswer(new Answer<Gateway>() {
      @Override
      public Gateway answer(InvocationOnMock invocation) throws Throwable {
        return gateway;
      }
View Full Code Here

TOP

Related Classes of com.gemstone.gemfire.cache.util.GatewayHub

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.