Skip to content

Commit 8b32915

Browse files
committed
Comments
1 parent 0326bc4 commit 8b32915

File tree

5 files changed

+0
-71
lines changed

5 files changed

+0
-71
lines changed

instrumentation/play/play-ws/play-ws-2.1/javaagent/src/latestDepTest/java/io/opentelemetry/javaagent/instrumentation/playws/v2_1/PlayJavaStreamedWsClientTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
package io.opentelemetry.javaagent.instrumentation.playws.v2_1;
77

88
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult;
9-
import java.io.IOException;
109
import java.net.URI;
1110
import java.util.Map;
1211
import java.util.concurrent.CompletionStage;
1312
import java.util.concurrent.ExecutionException;
14-
import org.junit.jupiter.api.AfterEach;
1513
import org.junit.jupiter.api.BeforeEach;
1614
import play.libs.ws.StandaloneWSClient;
1715
import play.libs.ws.StandaloneWSRequest;
@@ -34,18 +32,6 @@ void setup() {
3432
autoCleanup.deferCleanup(wsClientWithReadTimeout);
3533
}
3634

37-
@AfterEach
38-
@Override
39-
void tearDown() throws IOException {
40-
if (wsClient != null) {
41-
wsClient.close();
42-
}
43-
if (wsClientWithReadTimeout != null) {
44-
wsClientWithReadTimeout.close();
45-
}
46-
super.tearDown();
47-
}
48-
4935
@Override
5036
public StandaloneWSRequest buildRequest(String method, URI uri, Map<String, String> headers) {
5137
StandaloneWSRequest request = getClient(uri).url(uri.toString()).setFollowRedirects(true);

instrumentation/play/play-ws/play-ws-2.1/javaagent/src/latestDepTest/java/io/opentelemetry/javaagent/instrumentation/playws/v2_1/PlayJavaWsClientTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
package io.opentelemetry.javaagent.instrumentation.playws.v2_1;
77

88
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult;
9-
import java.io.IOException;
109
import java.net.URI;
1110
import java.util.Map;
1211
import java.util.concurrent.ExecutionException;
13-
import org.junit.jupiter.api.AfterEach;
1412
import org.junit.jupiter.api.BeforeEach;
1513
import play.libs.ws.StandaloneWSClient;
1614
import play.libs.ws.StandaloneWSRequest;
@@ -32,18 +30,6 @@ void setup() {
3230
autoCleanup.deferCleanup(wsClientWithReadTimeout);
3331
}
3432

35-
@AfterEach
36-
@Override
37-
void tearDown() throws IOException {
38-
if (wsClient != null) {
39-
wsClient.close();
40-
}
41-
if (wsClientWithReadTimeout != null) {
42-
wsClientWithReadTimeout.close();
43-
}
44-
super.tearDown();
45-
}
46-
4733
@Override
4834
public StandaloneWSRequest buildRequest(String method, URI uri, Map<String, String> headers) {
4935
StandaloneWSRequest request = getClient(uri).url(uri.toString()).setFollowRedirects(true);

instrumentation/play/play-ws/play-ws-2.1/javaagent/src/latestDepTest/java/io/opentelemetry/javaagent/instrumentation/playws/v2_1/PlayScalaStreamedWsClientTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
package io.opentelemetry.javaagent.instrumentation.playws.v2_1;
77

88
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult;
9-
import java.io.IOException;
109
import java.net.URI;
1110
import java.util.Map;
1211
import java.util.concurrent.TimeUnit;
13-
import org.junit.jupiter.api.AfterEach;
1412
import org.junit.jupiter.api.BeforeEach;
1513
import play.api.libs.ws.StandaloneWSClient;
1614
import play.api.libs.ws.StandaloneWSRequest;
@@ -40,18 +38,6 @@ void setup() {
4038
autoCleanup.deferCleanup(wsClientWithReadTimeout);
4139
}
4240

43-
@AfterEach
44-
@Override
45-
void tearDown() throws IOException {
46-
if (wsClient != null) {
47-
wsClient.close();
48-
}
49-
if (wsClientWithReadTimeout != null) {
50-
wsClientWithReadTimeout.close();
51-
}
52-
super.tearDown();
53-
}
54-
5541
@Override
5642
public StandaloneWSRequest buildRequest(String method, URI uri, Map<String, String> headers)
5743
throws Exception {

instrumentation/play/play-ws/play-ws-2.1/javaagent/src/latestDepTest/java/io/opentelemetry/javaagent/instrumentation/playws/v2_1/PlayScalaWsClientTest.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
package io.opentelemetry.javaagent.instrumentation.playws.v2_1;
77

88
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientResult;
9-
import java.io.IOException;
109
import java.net.MalformedURLException;
1110
import java.net.URI;
1211
import java.util.Map;
1312
import java.util.concurrent.TimeUnit;
14-
import org.junit.jupiter.api.AfterEach;
1513
import org.junit.jupiter.api.BeforeEach;
1614
import play.api.libs.ws.StandaloneWSClient;
1715
import play.api.libs.ws.StandaloneWSRequest;
@@ -41,18 +39,6 @@ void setup() {
4139
autoCleanup.deferCleanup(wsClientWithReadTimeout);
4240
}
4341

44-
@AfterEach
45-
@Override
46-
void tearDown() throws IOException {
47-
if (wsClient != null) {
48-
wsClient.close();
49-
}
50-
if (wsClientWithReadTimeout != null) {
51-
wsClientWithReadTimeout.close();
52-
}
53-
super.tearDown();
54-
}
55-
5642
@Override
5743
public StandaloneWSRequest buildRequest(String method, URI uri, Map<String, String> headers)
5844
throws MalformedURLException {

instrumentation/play/play-ws/play-ws-2.1/javaagent/src/latestDepTest/java/io/opentelemetry/javaagent/instrumentation/playws/v2_1/PlayWsClientBaseTest.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientTestOptions;
1616
import io.opentelemetry.semconv.NetworkAttributes;
1717
import io.opentelemetry.semconv.ServerAttributes;
18-
import java.io.IOException;
1918
import java.net.InetAddress;
2019
import java.net.URI;
2120
import java.net.UnknownHostException;
@@ -24,7 +23,6 @@
2423
import java.util.List;
2524
import java.util.Map;
2625
import java.util.Set;
27-
import org.junit.jupiter.api.AfterEach;
2826
import org.junit.jupiter.api.BeforeEach;
2927
import org.junit.jupiter.api.extension.RegisterExtension;
3028
import play.shaded.ahc.io.netty.resolver.InetNameResolver;
@@ -67,19 +65,6 @@ void setup() {
6765
autoCleanup.deferCleanup(asyncHttpClientWithReadTimeout);
6866
}
6967

70-
@AfterEach
71-
void tearDown() throws IOException {
72-
if (system != null) {
73-
system.terminate();
74-
}
75-
if (asyncHttpClient != null) {
76-
asyncHttpClient.close();
77-
}
78-
if (asyncHttpClientWithReadTimeout != null) {
79-
asyncHttpClientWithReadTimeout.close();
80-
}
81-
}
82-
8368
@Override
8469
public REQUEST buildRequest(String method, URI uri, Map<String, String> headers)
8570
throws Exception {

0 commit comments

Comments
 (0)