Skip to content

Commit 570f8d1

Browse files
committed
Comments
1 parent 8b32915 commit 570f8d1

File tree

6 files changed

+4
-49
lines changed

6 files changed

+4
-49
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import play.libs.ws.StandaloneWSResponse;
1717
import play.libs.ws.ahc.StandaloneAhcWSClient;
1818

19-
public class PlayJavaStreamedWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
19+
class PlayJavaStreamedWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
2020

2121
private static StandaloneWSClient wsClient;
2222
private static StandaloneWSClient wsClientWithReadTimeout;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import play.libs.ws.StandaloneWSRequest;
1515
import play.libs.ws.ahc.StandaloneAhcWSClient;
1616

17-
public class PlayJavaWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
17+
class PlayJavaWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
1818

1919
private static StandaloneWSClient wsClient;
2020
private static StandaloneWSClient wsClientWithReadTimeout;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import scala.jdk.javaapi.CollectionConverters;
2323
import scala.util.Try;
2424

25-
public class PlayScalaStreamedWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
25+
class PlayScalaStreamedWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
2626

2727
private static StandaloneWSClient wsClient;
2828
private static StandaloneWSClient wsClientWithReadTimeout;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import scala.jdk.javaapi.CollectionConverters;
2424
import scala.util.Try;
2525

26-
public class PlayScalaWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
26+
class PlayScalaWsClientTest extends PlayWsClientBaseTest<StandaloneWSRequest> {
2727

2828
private static StandaloneWSClient wsClient;
2929
private static StandaloneWSClient wsClientWithReadTimeout;

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 & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,11 @@
1616
import io.opentelemetry.semconv.NetworkAttributes;
1717
import io.opentelemetry.semconv.ServerAttributes;
1818
import java.net.InetAddress;
19-
import java.net.URI;
2019
import java.net.UnknownHostException;
2120
import java.util.Collections;
2221
import java.util.HashSet;
2322
import java.util.List;
24-
import java.util.Map;
2523
import java.util.Set;
26-
import org.junit.jupiter.api.BeforeEach;
2724
import org.junit.jupiter.api.extension.RegisterExtension;
2825
import play.shaded.ahc.io.netty.resolver.InetNameResolver;
2926
import play.shaded.ahc.io.netty.util.concurrent.EventExecutor;
@@ -47,7 +44,6 @@ abstract class PlayWsClientBaseTest<REQUEST> extends AbstractHttpClientTest<REQU
4744
protected static AsyncHttpClient asyncHttpClientWithReadTimeout;
4845
protected static Materializer materializer;
4946

50-
@BeforeEach
5147
void setup() {
5248
String name = "play-ws";
5349
system = ActorSystem.create(name);
@@ -65,18 +61,6 @@ void setup() {
6561
autoCleanup.deferCleanup(asyncHttpClientWithReadTimeout);
6662
}
6763

68-
@Override
69-
public REQUEST buildRequest(String method, URI uri, Map<String, String> headers)
70-
throws Exception {
71-
return null;
72-
}
73-
74-
@Override
75-
public int sendRequest(REQUEST request, String method, URI uri, Map<String, String> headers)
76-
throws Exception {
77-
return 0;
78-
}
79-
8064
@Override
8165
protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
8266
super.configure(optionsBuilder);

instrumentation/play/play-ws/play-ws-common/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/playws/PlayWsClientBaseTest.java

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@
1616
import io.opentelemetry.instrumentation.testing.junit.http.HttpClientTestOptions;
1717
import io.opentelemetry.semconv.NetworkAttributes;
1818
import io.opentelemetry.semconv.ServerAttributes;
19-
import java.io.IOException;
2019
import java.net.InetAddress;
21-
import java.net.URI;
2220
import java.net.UnknownHostException;
2321
import java.util.Collections;
2422
import java.util.HashSet;
2523
import java.util.List;
26-
import java.util.Map;
2724
import java.util.Set;
28-
import org.junit.jupiter.api.AfterEach;
2925
import org.junit.jupiter.api.BeforeEach;
3026
import org.junit.jupiter.api.extension.RegisterExtension;
3127
import play.shaded.ahc.io.netty.resolver.InetNameResolver;
@@ -68,31 +64,6 @@ void setup() {
6864
autoCleanup.deferCleanup(asyncHttpClientWithReadTimeout);
6965
}
7066

71-
@AfterEach
72-
void tearDown() throws IOException {
73-
if (system != null) {
74-
system.terminate();
75-
}
76-
if (asyncHttpClient != null) {
77-
asyncHttpClient.close();
78-
}
79-
if (asyncHttpClientWithReadTimeout != null) {
80-
asyncHttpClientWithReadTimeout.close();
81-
}
82-
}
83-
84-
@Override
85-
public REQUEST buildRequest(String method, URI uri, Map<String, String> headers)
86-
throws Exception {
87-
return null;
88-
}
89-
90-
@Override
91-
public int sendRequest(REQUEST request, String method, URI uri, Map<String, String> headers)
92-
throws Exception {
93-
return 0;
94-
}
95-
9667
@Override
9768
protected void configure(HttpClientTestOptions.Builder optionsBuilder) {
9869
super.configure(optionsBuilder);

0 commit comments

Comments
 (0)