@@ -88,7 +88,7 @@ public void testProactiveRebind() throws Exception {
8888 assertEquals (0 , mockServer2 .getConnectedClientCount ());
8989
9090 // 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
91- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
91+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
9292
9393 // 3. Perform PING command
9494 // This should trigger read of the MOVING notification and rebind to server2
@@ -132,7 +132,7 @@ public void testActiveConnectionShouldBeDisposedOnRebind() {
132132 assertEquals (0 , mockServer2 .getConnectedClientCount ());
133133
134134 // 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
135- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
135+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
136136
137137 // 3. Active connection should be still usable until closed and returned to the pools
138138 assertTrue (activeConnection .ping ());
@@ -176,7 +176,7 @@ public void testIdleConnectionShouldBeDisposedOnRebind() {
176176
177177 // 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
178178 String server2Address = "localhost:" + mockServer2 .getPort ();
179- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address );
179+ mockServer1 .sendMovingPushToAll ( 30L , server2Address );
180180
181181 // 3. perform a command on active connection to trigger rebind
182182 assertTrue (activeConnection .ping ());
@@ -213,7 +213,7 @@ public void testNewPoolConnectionsCreatedAgainstMovingTarget() {
213213 assertEquals (0 , mockServer2 .getConnectedClientCount ());
214214
215215 // 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
216- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
216+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
217217
218218 // 3. perform a command on active connection to trigger rebind
219219 assertTrue (activeConnection .ping ());
@@ -250,7 +250,7 @@ public void testPoolConnectionsWithProactiveRebindDisabled() {
250250 assertEquals (0 , mockServer2 .getConnectedClientCount ());
251251
252252 // 2. Send MOVING notification on server1 -> MOVING 30 localhost:port2
253- mockServer1 .sendPushMessageToAll ( "MOVING" , "30" , server2Address .toString ());
253+ mockServer1 .sendMovingPushToAll ( 30L , server2Address .toString ());
254254
255255 // 3. Perform PING command
256256 // This should trigger read of the MOVING notification processing
0 commit comments