Fixed test issue in GatewayReceiverNamespaceTest class which caused a com.gemstone.gemfire.management.ManagementException: javax.management.InstanceAlreadyExistsException: GemFire:service=GatewayReceiver,type=Member,member=10.237.177.13(80647)-24771 when mocking was disabled and true integration testing was performed in the SDG build/test run.

This commit is contained in:
John Blum
2014-07-30 23:31:38 -07:00
parent f9cbc89cd3
commit 0e3b8885d4
2 changed files with 3 additions and 2 deletions

View File

@@ -55,9 +55,10 @@ public class GatewayReceiverNamespaceTest {
private GatewayReceiverFactoryBean manualGatewayReceiver;
@Test
// TODO test the default value for "manual-start" (true) without explicitly setting the attribute in Spring XML
public void testDefault() throws Exception {
assertNotNull("The 'Default' GatewayReceiverFactoryBean was not properly configured and initialized!", defaultFactoryBean);
assertTrue(defaultFactoryBean.isAutoStartup());
assertFalse(defaultFactoryBean.isAutoStartup());
GatewayReceiver defaultGatewayReceiver = defaultFactoryBean.getObject();