@@ -80,7 +80,7 @@ void testJmxMonitor()
8080 @ Test
8181 void testJmxMonitorWithBadRequest ()
8282 {
83- HttpClient client = new TestingHttpClient (ignored -> TestingResponse
83+ HttpClient client = new TestingHttpClient (_ -> TestingResponse
8484 .mockResponse (HttpStatus .BAD_REQUEST , MediaType .PLAIN_TEXT_UTF_8 , "Bad Request" ));
8585
8686 testClusterStatsMonitorWithClient (client );
@@ -89,7 +89,7 @@ void testJmxMonitorWithBadRequest()
8989 @ Test
9090 void testJmxMonitorWithServerError ()
9191 {
92- HttpClient client = new TestingHttpClient (ignored -> TestingResponse
92+ HttpClient client = new TestingHttpClient (_ -> TestingResponse
9393 .mockResponse (HttpStatus .INTERNAL_SERVER_ERROR , MediaType .PLAIN_TEXT_UTF_8 , "Internal Server Error" ));
9494
9595 testClusterStatsMonitorWithClient (client );
@@ -98,7 +98,7 @@ void testJmxMonitorWithServerError()
9898 @ Test
9999 void testJmxMonitorWithInvalidJson ()
100100 {
101- HttpClient client = new TestingHttpClient (ignored -> TestingResponse
101+ HttpClient client = new TestingHttpClient (_ -> TestingResponse
102102 .mockResponse (HttpStatus .OK , MediaType .JSON_UTF_8 , "{invalid:json}" ));
103103
104104 testClusterStatsMonitorWithClient (client );
@@ -107,7 +107,7 @@ void testJmxMonitorWithInvalidJson()
107107 @ Test
108108 void testJmxMonitorWithNetworkError ()
109109 {
110- HttpClient client = new TestingHttpClient (ignored -> {
110+ HttpClient client = new TestingHttpClient (_ -> {
111111 throw new RuntimeException ("Network error" );
112112 });
113113
@@ -133,8 +133,8 @@ void testInfoApiMonitor()
133133 {
134134 MonitorConfiguration monitorConfigurationWithRetries = new MonitorConfiguration ();
135135 monitorConfigurationWithRetries .setRetries (10 );
136- testClusterStatsMonitor (ignored -> new ClusterStatsInfoApiMonitor (new JettyHttpClient (new HttpClientConfig ()), new MonitorConfiguration ()));
137- testClusterStatsMonitor (ignored -> new ClusterStatsInfoApiMonitor (new JettyHttpClient (new HttpClientConfig ()), monitorConfigurationWithRetries ));
136+ testClusterStatsMonitor (_ -> new ClusterStatsInfoApiMonitor (new JettyHttpClient (new HttpClientConfig ()), new MonitorConfiguration ()));
137+ testClusterStatsMonitor (_ -> new ClusterStatsInfoApiMonitor (new JettyHttpClient (new HttpClientConfig ()), monitorConfigurationWithRetries ));
138138 }
139139
140140 private void testClusterStatsMonitor (Function <BackendStateConfiguration , ClusterStatsMonitor > monitorFactory )
0 commit comments