Skip to content

Commit c590597

Browse files
shalkjeanbisutti
andauthored
Apply suggestions from code review
Co-authored-by: Jean Bisutti <[email protected]>
1 parent 8784c2c commit c590597

File tree

1 file changed

+10
-10
lines changed
  • instrumentation/twilio-6.6/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/twilio

1 file changed

+10
-10
lines changed

instrumentation/twilio-6.6/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/twilio/TwilioClientTest.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
import org.junit.jupiter.api.Test;
4747
import org.junit.jupiter.api.extension.RegisterExtension;
4848

49-
public class TwilioClientTest {
49+
class TwilioClientTest {
5050

5151
@RegisterExtension
5252
private static final InstrumentationExtension testing = AgentInstrumentationExtension.create();
@@ -133,7 +133,7 @@ static void tearDown() {
133133
}
134134

135135
@Test
136-
public void synchronousMessage() {
136+
void synchronousMessage() {
137137
twilioRestClient = mock(TwilioRestClient.class);
138138
when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper());
139139
when(twilioRestClient.request(any()))
@@ -175,7 +175,7 @@ public void synchronousMessage() {
175175
}
176176

177177
@Test
178-
public void synchronousCall() throws URISyntaxException {
178+
void synchronousCall() throws URISyntaxException {
179179
twilioRestClient = mock(TwilioRestClient.class);
180180
when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper());
181181
when(twilioRestClient.request(any()))
@@ -217,7 +217,7 @@ public void synchronousCall() throws URISyntaxException {
217217
}
218218

219219
@Test
220-
public void httpClient() throws IOException {
220+
void httpClient() throws IOException {
221221
CloseableHttpClient httpClient = mock(CloseableHttpClient.class);
222222
CloseableHttpResponse response1 = mockResponse(MESSAGE_RESPONSE_BODY, 200);
223223
when(httpClient.execute(any())).thenReturn(response1);
@@ -272,7 +272,7 @@ public void httpClient() throws IOException {
272272
}
273273

274274
@Test
275-
public void httpClientRetry() throws IOException {
275+
void httpClientRetry() throws IOException {
276276
CloseableHttpClient httpClient = mock(CloseableHttpClient.class);
277277
CloseableHttpResponse response1 = mockResponse(ERROR_RESPONSE_BODY, 500);
278278
CloseableHttpResponse response2 = mockResponse(MESSAGE_RESPONSE_BODY, 200);
@@ -321,7 +321,7 @@ public void httpClientRetry() throws IOException {
321321
}
322322

323323
@Test
324-
public void httpClientRetryAsync() throws Exception {
324+
void httpClientRetryAsync() throws Exception {
325325
CloseableHttpClient httpClient = mock(CloseableHttpClient.class);
326326
CloseableHttpResponse response1 = mockResponse(ERROR_RESPONSE_BODY, 500);
327327
CloseableHttpResponse response2 = mockResponse(MESSAGE_RESPONSE_BODY, 200);
@@ -378,7 +378,7 @@ public void httpClientRetryAsync() throws Exception {
378378
}
379379

380380
@Test
381-
public void syncFailure() {
381+
void syncFailure() {
382382
twilioRestClient = mock(TwilioRestClient.class);
383383
when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper());
384384
when(twilioRestClient.request(any()))
@@ -415,7 +415,7 @@ public void syncFailure() {
415415
}
416416

417417
@Test
418-
public void rootSpan() {
418+
void rootSpan() {
419419
twilioRestClient = mock(TwilioRestClient.class);
420420
when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper());
421421
when(twilioRestClient.request(any()))
@@ -453,7 +453,7 @@ public void rootSpan() {
453453
}
454454

455455
@Test
456-
public void asynchronousCall() throws Exception {
456+
void asynchronousCall() throws Exception {
457457
twilioRestClient = mock(TwilioRestClient.class);
458458
when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper());
459459
when(twilioRestClient.request(any()))
@@ -504,7 +504,7 @@ public void asynchronousCall() throws Exception {
504504
}
505505

506506
@Test
507-
public void asynchronousError() {
507+
void asynchronousError() {
508508
twilioRestClient = mock(TwilioRestClient.class);
509509
when(twilioRestClient.getObjectMapper()).thenReturn(new ObjectMapper());
510510
when(twilioRestClient.request(any()))

0 commit comments

Comments
 (0)