@@ -50,13 +50,13 @@ public class CreateGatewayReceiverCommandDUnitTest extends WANCommandTestBase {
50
50
@ Test
51
51
public void testCreateGatewayReceiverWithDefault () {
52
52
VM puneLocator = Host .getLocator ();
53
- int punePort = puneLocator .invoke (this ::getLocatorPort );
54
- propsSetUp (punePort );
55
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
53
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
54
+ propsSetUp (dsIdPort );
55
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
56
56
57
- vm3 .invoke (() -> createCache (punePort ));
58
- vm4 .invoke (() -> createCache (punePort ));
59
- vm5 .invoke (() -> createCache (punePort ));
57
+ vm3 .invoke (() -> createCache (dsIdPort ));
58
+ vm4 .invoke (() -> createCache (dsIdPort ));
59
+ vm5 .invoke (() -> createCache (dsIdPort ));
60
60
61
61
String command = CliStrings .CREATE_GATEWAYRECEIVER ;
62
62
CommandResult cmdResult = executeCommand (command );
@@ -96,13 +96,13 @@ public void testCreateGatewayReceiverWithDefault() {
96
96
@ Test
97
97
public void testCreateGatewayReceiver () {
98
98
VM puneLocator = Host .getLocator ();
99
- int punePort = puneLocator .invoke (this ::getLocatorPort );
100
- propsSetUp (punePort );
101
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
99
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
100
+ propsSetUp (dsIdPort );
101
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
102
102
103
- vm3 .invoke (() -> createCache (punePort ));
104
- vm4 .invoke (() -> createCache (punePort ));
105
- vm5 .invoke (() -> createCache (punePort ));
103
+ vm3 .invoke (() -> createCache (dsIdPort ));
104
+ vm4 .invoke (() -> createCache (dsIdPort ));
105
+ vm5 .invoke (() -> createCache (dsIdPort ));
106
106
107
107
String command =
108
108
CliStrings .CREATE_GATEWAYRECEIVER + " --" + CliStrings .CREATE_GATEWAYRECEIVER__MANUALSTART
@@ -141,13 +141,13 @@ public void testCreateGatewayReceiver() {
141
141
@ Test
142
142
public void testCreateGatewayReceiverWithGatewayTransportFilter () {
143
143
VM puneLocator = Host .getLocator ();
144
- int punePort = puneLocator .invoke (this ::getLocatorPort );
145
- propsSetUp (punePort );
146
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
144
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
145
+ propsSetUp (dsIdPort );
146
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
147
147
148
- vm3 .invoke (() -> createCache (punePort ));
149
- vm4 .invoke (() -> createCache (punePort ));
150
- vm5 .invoke (() -> createCache (punePort ));
148
+ vm3 .invoke (() -> createCache (dsIdPort ));
149
+ vm4 .invoke (() -> createCache (dsIdPort ));
150
+ vm5 .invoke (() -> createCache (dsIdPort ));
151
151
152
152
String command =
153
153
CliStrings .CREATE_GATEWAYRECEIVER + " --" + CliStrings .CREATE_GATEWAYRECEIVER__MANUALSTART
@@ -191,13 +191,13 @@ public void testCreateGatewayReceiverWithGatewayTransportFilter() {
191
191
@ Test
192
192
public void testCreateGatewayReceiverWithMultipleGatewayTransportFilters () {
193
193
VM puneLocator = Host .getLocator ();
194
- int punePort = puneLocator .invoke (this ::getLocatorPort );
195
- propsSetUp (punePort );
196
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
194
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
195
+ propsSetUp (dsIdPort );
196
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
197
197
198
- vm3 .invoke (() -> createCache (punePort ));
199
- vm4 .invoke (() -> createCache (punePort ));
200
- vm5 .invoke (() -> createCache (punePort ));
198
+ vm3 .invoke (() -> createCache (dsIdPort ));
199
+ vm4 .invoke (() -> createCache (dsIdPort ));
200
+ vm5 .invoke (() -> createCache (dsIdPort ));
201
201
202
202
String command = CliStrings .CREATE_GATEWAYRECEIVER + " --"
203
203
+ CliStrings .CREATE_GATEWAYRECEIVER__BINDADDRESS + "=localhost" + " --"
@@ -241,13 +241,13 @@ public void testCreateGatewayReceiverWithMultipleGatewayTransportFilters() {
241
241
@ Test
242
242
public void testCreateGatewayReceiver_Error () {
243
243
VM puneLocator = Host .getLocator ();
244
- int punePort = puneLocator .invoke (this ::getLocatorPort );
245
- propsSetUp (punePort );
246
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
244
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
245
+ propsSetUp (dsIdPort );
246
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
247
247
248
- vm3 .invoke (() -> createCache (punePort ));
249
- vm4 .invoke (() -> createCache (punePort ));
250
- vm5 .invoke (() -> createCache (punePort ));
248
+ vm3 .invoke (() -> createCache (dsIdPort ));
249
+ vm4 .invoke (() -> createCache (dsIdPort ));
250
+ vm5 .invoke (() -> createCache (dsIdPort ));
251
251
252
252
String command =
253
253
CliStrings .CREATE_GATEWAYRECEIVER + " --" + CliStrings .CREATE_GATEWAYRECEIVER__BINDADDRESS
@@ -280,13 +280,13 @@ public void testCreateGatewayReceiver_Error() {
280
280
@ Test
281
281
public void testCreateGatewayReceiver_onMember () {
282
282
VM puneLocator = Host .getLocator ();
283
- int punePort = puneLocator .invoke (this ::getLocatorPort );
284
- propsSetUp (punePort );
285
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
283
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
284
+ propsSetUp (dsIdPort );
285
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
286
286
287
- vm3 .invoke (() -> createCache (punePort ));
288
- vm4 .invoke (() -> createCache (punePort ));
289
- vm5 .invoke (() -> createCache (punePort ));
287
+ vm3 .invoke (() -> createCache (dsIdPort ));
288
+ vm4 .invoke (() -> createCache (dsIdPort ));
289
+ vm5 .invoke (() -> createCache (dsIdPort ));
290
290
291
291
final DistributedMember vm3Member = vm3 .invoke (this ::getMember );
292
292
@@ -325,13 +325,13 @@ public void testCreateGatewayReceiver_onMember() {
325
325
@ Test
326
326
public void testCreateGatewayReceiver_onMultipleMembers () {
327
327
VM puneLocator = Host .getLocator ();
328
- int punePort = puneLocator .invoke (this ::getLocatorPort );
329
- propsSetUp (punePort );
330
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
328
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
329
+ propsSetUp (dsIdPort );
330
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
331
331
332
- vm3 .invoke (() -> createCache (punePort ));
333
- vm4 .invoke (() -> createCache (punePort ));
334
- vm5 .invoke (() -> createCache (punePort ));
332
+ vm3 .invoke (() -> createCache (dsIdPort ));
333
+ vm4 .invoke (() -> createCache (dsIdPort ));
334
+ vm5 .invoke (() -> createCache (dsIdPort ));
335
335
336
336
final DistributedMember vm3Member = vm3 .invoke (this ::getMember );
337
337
final DistributedMember vm4Member = vm4 .invoke (this ::getMember );
@@ -372,13 +372,13 @@ public void testCreateGatewayReceiver_onMultipleMembers() {
372
372
@ Test
373
373
public void testCreateGatewayReceiver_onGroup () {
374
374
VM puneLocator = Host .getLocator ();
375
- int punePort = puneLocator .invoke (this ::getLocatorPort );
376
- propsSetUp (punePort );
377
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
375
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
376
+ propsSetUp (dsIdPort );
377
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
378
378
379
- vm3 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
380
- vm4 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
381
- vm5 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
379
+ vm3 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
380
+ vm4 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
381
+ vm5 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
382
382
383
383
String command =
384
384
CliStrings .CREATE_GATEWAYRECEIVER + " --" + CliStrings .CREATE_GATEWAYRECEIVER__MANUALSTART
@@ -420,13 +420,13 @@ public void testCreateGatewayReceiver_onGroup() {
420
420
@ Test
421
421
public void testCreateGatewayReceiver_onGroup_Scenario2 () {
422
422
VM puneLocator = Host .getLocator ();
423
- int punePort = puneLocator .invoke (this ::getLocatorPort );
424
- propsSetUp (punePort );
425
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
423
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
424
+ propsSetUp (dsIdPort );
425
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
426
426
427
- vm3 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
428
- vm4 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
429
- vm5 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup2" ));
427
+ vm3 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
428
+ vm4 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
429
+ vm5 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup2" ));
430
430
431
431
String command =
432
432
CliStrings .CREATE_GATEWAYRECEIVER + " --" + CliStrings .CREATE_GATEWAYRECEIVER__MANUALSTART
@@ -464,13 +464,13 @@ public void testCreateGatewayReceiver_onGroup_Scenario2() {
464
464
@ Test
465
465
public void testCreateGatewayReceiver_onMultipleGroups () {
466
466
VM puneLocator = Host .getLocator ();
467
- int punePort = puneLocator .invoke (this ::getLocatorPort );
468
- propsSetUp (punePort );
469
- vm2 .invoke (() -> createFirstRemoteLocator (2 , punePort ));
467
+ int dsIdPort = puneLocator .invoke (this ::getLocatorPort );
468
+ propsSetUp (dsIdPort );
469
+ vm2 .invoke (() -> createFirstRemoteLocator (2 , dsIdPort ));
470
470
471
- vm3 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
472
- vm4 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup1" ));
473
- vm5 .invoke (() -> createCacheWithGroups (punePort , "receiverGroup2" ));
471
+ vm3 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
472
+ vm4 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup1" ));
473
+ vm5 .invoke (() -> createCacheWithGroups (dsIdPort , "receiverGroup2" ));
474
474
475
475
String command =
476
476
CliStrings .CREATE_GATEWAYRECEIVER + " --" + CliStrings .CREATE_GATEWAYRECEIVER__MANUALSTART
0 commit comments