|
46 | 46 | import org.junit.jupiter.api.Test; |
47 | 47 | import org.junit.jupiter.api.extension.RegisterExtension; |
48 | 48 |
|
49 | | -public class TwilioClientTest { |
| 49 | +class TwilioClientTest { |
50 | 50 |
|
51 | 51 | @RegisterExtension |
52 | 52 | private static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); |
@@ -133,7 +133,7 @@ static void tearDown() { |
133 | 133 | } |
134 | 134 |
|
135 | 135 | @Test |
136 | | - public void synchronousMessage() { |
| 136 | +void synchronousMessage() { |
137 | 137 | twilioRestClient = mock(TwilioRestClient.class); |
138 | 138 | when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper()); |
139 | 139 | when(twilioRestClient.request(any())) |
@@ -175,7 +175,7 @@ public void synchronousMessage() { |
175 | 175 | } |
176 | 176 |
|
177 | 177 | @Test |
178 | | - public void synchronousCall() throws URISyntaxException { |
| 178 | +void synchronousCall() throws URISyntaxException { |
179 | 179 | twilioRestClient = mock(TwilioRestClient.class); |
180 | 180 | when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper()); |
181 | 181 | when(twilioRestClient.request(any())) |
@@ -217,7 +217,7 @@ public void synchronousCall() throws URISyntaxException { |
217 | 217 | } |
218 | 218 |
|
219 | 219 | @Test |
220 | | - public void httpClient() throws IOException { |
| 220 | +void httpClient() throws IOException { |
221 | 221 | CloseableHttpClient httpClient = mock(CloseableHttpClient.class); |
222 | 222 | CloseableHttpResponse response1 = mockResponse(MESSAGE_RESPONSE_BODY, 200); |
223 | 223 | when(httpClient.execute(any())).thenReturn(response1); |
@@ -272,7 +272,7 @@ public void httpClient() throws IOException { |
272 | 272 | } |
273 | 273 |
|
274 | 274 | @Test |
275 | | - public void httpClientRetry() throws IOException { |
| 275 | +void httpClientRetry() throws IOException { |
276 | 276 | CloseableHttpClient httpClient = mock(CloseableHttpClient.class); |
277 | 277 | CloseableHttpResponse response1 = mockResponse(ERROR_RESPONSE_BODY, 500); |
278 | 278 | CloseableHttpResponse response2 = mockResponse(MESSAGE_RESPONSE_BODY, 200); |
@@ -321,7 +321,7 @@ public void httpClientRetry() throws IOException { |
321 | 321 | } |
322 | 322 |
|
323 | 323 | @Test |
324 | | - public void httpClientRetryAsync() throws Exception { |
| 324 | +void httpClientRetryAsync() throws Exception { |
325 | 325 | CloseableHttpClient httpClient = mock(CloseableHttpClient.class); |
326 | 326 | CloseableHttpResponse response1 = mockResponse(ERROR_RESPONSE_BODY, 500); |
327 | 327 | CloseableHttpResponse response2 = mockResponse(MESSAGE_RESPONSE_BODY, 200); |
@@ -378,7 +378,7 @@ public void httpClientRetryAsync() throws Exception { |
378 | 378 | } |
379 | 379 |
|
380 | 380 | @Test |
381 | | - public void syncFailure() { |
| 381 | +void syncFailure() { |
382 | 382 | twilioRestClient = mock(TwilioRestClient.class); |
383 | 383 | when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper()); |
384 | 384 | when(twilioRestClient.request(any())) |
@@ -415,7 +415,7 @@ public void syncFailure() { |
415 | 415 | } |
416 | 416 |
|
417 | 417 | @Test |
418 | | - public void rootSpan() { |
| 418 | +void rootSpan() { |
419 | 419 | twilioRestClient = mock(TwilioRestClient.class); |
420 | 420 | when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper()); |
421 | 421 | when(twilioRestClient.request(any())) |
@@ -453,7 +453,7 @@ public void rootSpan() { |
453 | 453 | } |
454 | 454 |
|
455 | 455 | @Test |
456 | | - public void asynchronousCall() throws Exception { |
| 456 | +void asynchronousCall() throws Exception { |
457 | 457 | twilioRestClient = mock(TwilioRestClient.class); |
458 | 458 | when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper()); |
459 | 459 | when(twilioRestClient.request(any())) |
@@ -504,7 +504,7 @@ public void asynchronousCall() throws Exception { |
504 | 504 | } |
505 | 505 |
|
506 | 506 | @Test |
507 | | - public void asynchronousError() { |
| 507 | +void asynchronousError() { |
508 | 508 | twilioRestClient = mock(TwilioRestClient.class); |
509 | 509 | when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper()); |
510 | 510 | when(twilioRestClient.request(any())) |
|
0 commit comments