DATAGEODE-168 - Apply additional configuration changes.
Resolves gh-7.
This commit is contained in:
@@ -93,14 +93,14 @@ public class EnableEnableGatewayReceiverConfigurerTests {
|
||||
public void gatewayReceiverConfigurerWithPropertiesConfiguration() {
|
||||
|
||||
MockPropertySource testPropertySource = new MockPropertySource()
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.bindAddress", "123.123.123.123")
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.hostnameForSenders", "testHostName")
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.startPort", 16000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.endPort", 17000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.maximumTimeBetweenPings", 30000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.socketBufferSize", 32768)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.manualStart", true)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.transportFilters", "transportBean1,transportBean2");
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.bind-address", "123.123.123.123")
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.hostname-for-senders", "testHostName")
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.start-port", 16000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.end-port", 17000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.maximum-time-between-pings", 30000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.socket-buffer-size", 32768)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.manual-start", true)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.transport-filters", "transportBean1,transportBean2");
|
||||
|
||||
this.applicationContext = newApplicationContext(testPropertySource,
|
||||
EnableEnableGatewayReceiverConfigurerTests.TestConfigurationWithProperties.class);
|
||||
@@ -127,11 +127,11 @@ public class EnableEnableGatewayReceiverConfigurerTests {
|
||||
public void gatewayReceiverConfigurerWithPropertiesAndAnnotationConfiguration() {
|
||||
|
||||
MockPropertySource testPropertySource = new MockPropertySource()
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.hostnameForSenders", "testHostName")
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.maximumTimeBetweenPings", 30000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.socketBufferSize", 32768)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.manualStart", true)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.transportFilters", "transportBean2,transportBean1");
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.hostname-for-senders", "testHostName")
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.maximum-time-between-pings", 30000)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.socket-buffer-size", 32768)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.manual-start", true)
|
||||
.withProperty("spring.data.gemfire.gateway.receiver.transport-filters", "transportBean2,transportBean1");
|
||||
|
||||
this.applicationContext = newApplicationContext(testPropertySource,
|
||||
EnableEnableGatewayReceiverConfigurerTests.TestConfiguration.class);
|
||||
|
||||
@@ -2,6 +2,14 @@ package org.springframework.data.gemfire.config.annotation;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
import org.apache.geode.cache.wan.GatewayReceiver;
|
||||
import org.apache.geode.cache.wan.GatewayTransportFilter;
|
||||
import org.junit.After;
|
||||
@@ -16,10 +24,6 @@ import org.springframework.data.gemfire.wan.annotation.EnableGatewayReceiver;
|
||||
import org.springframework.data.gemfire.wan.annotation.EnableGatewayReceiverConfiguration;
|
||||
import org.springframework.data.gemfire.wan.annotation.EnableGatewayReceiverConfigurer;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* Tests for {@link org.springframework.data.gemfire.wan.annotation.EnableGatewayReceiver}.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user