File tree 2 files changed +4
-2
lines changed
pulsar-broker/src/test/java/org/apache/pulsar/websocket/proxy
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 21
21
import static java .util .concurrent .TimeUnit .SECONDS ;
22
22
import static org .apache .pulsar .broker .BrokerTestUtil .spyWithClassAndConstructorArgs ;
23
23
import static org .assertj .core .api .Assertions .assertThat ;
24
+ import static org .mockito .ArgumentMatchers .anyBoolean ;
24
25
import static org .mockito .ArgumentMatchers .anyInt ;
25
26
import static org .mockito .ArgumentMatchers .anyString ;
26
27
import static org .mockito .Mockito .doReturn ;
@@ -65,7 +66,7 @@ public void setup() throws Exception {
65
66
config .setWebSocketSessionIdleTimeoutMillis (3 * 1000 );
66
67
service = spyWithClassAndConstructorArgs (WebSocketService .class , config );
67
68
doReturn (new ZKMetadataStore (mockZooKeeperGlobal )).when (service )
68
- .createConfigMetadataStore (anyString (), anyInt ());
69
+ .createConfigMetadataStore (anyString (), anyInt (), anyBoolean () );
69
70
proxyServer = new ProxyServer (config );
70
71
WebSocketServiceStarter .start (proxyServer , service );
71
72
log .info ("Proxy Server Started" );
Original file line number Diff line number Diff line change 21
21
import static java .util .concurrent .TimeUnit .SECONDS ;
22
22
import static org .apache .pulsar .broker .BrokerTestUtil .spyWithClassAndConstructorArgs ;
23
23
import static org .assertj .core .api .Assertions .assertThat ;
24
+ import static org .mockito .ArgumentMatchers .anyBoolean ;
24
25
import static org .mockito .ArgumentMatchers .anyInt ;
25
26
import static org .mockito .ArgumentMatchers .anyString ;
26
27
import static org .mockito .Mockito .doReturn ;
@@ -67,7 +68,7 @@ public void setup() throws Exception {
67
68
config .setWebSocketPingDurationSeconds (2 );
68
69
service = spyWithClassAndConstructorArgs (WebSocketService .class , config );
69
70
doReturn (new ZKMetadataStore (mockZooKeeperGlobal )).when (service )
70
- .createConfigMetadataStore (anyString (), anyInt ());
71
+ .createConfigMetadataStore (anyString (), anyInt (), anyBoolean () );
71
72
proxyServer = new ProxyServer (config );
72
73
WebSocketServiceStarter .start (proxyServer , service );
73
74
log .info ("Proxy Server Started" );
You can’t perform that action at this time.
0 commit comments