Skip to content

Commit 90a5867

Browse files
committed
fix
1 parent 09052f8 commit 90a5867

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

telemetry-testing/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies {
3333
//spring modules
3434
implementation("org.springframework.boot:spring-boot-starter-web")
3535
testImplementation("org.springframework.boot:spring-boot-starter-test")
36+
testImplementation("org.springframework.boot:spring-boot-resttestclient")
3637

3738
testImplementation(enforcedPlatform("org.junit:junit-bom:6.0.1"))
3839
testImplementation("org.junit.jupiter:junit-jupiter-api")

telemetry-testing/src/test/java/io/opentelemetry/example/telemetry/ApplicationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import static org.mockserver.model.HttpRequest.request;
88
import static org.mockserver.model.HttpResponse.response;
99
import static org.mockserver.stop.Stop.stopQuietly;
10-
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.*;
10+
import static org.springframework.boot.test.context.SpringBootTest.WebEnvironment.RANDOM_PORT;
1111

1212
import com.google.protobuf.InvalidProtocolBufferException;
1313
import io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest;
@@ -26,8 +26,8 @@
2626
import org.mockserver.model.Body;
2727
import org.mockserver.model.HttpRequest;
2828
import org.springframework.beans.factory.annotation.Autowired;
29+
import org.springframework.boot.resttestclient.TestRestTemplate;
2930
import org.springframework.boot.test.context.SpringBootTest;
30-
import org.springframework.boot.test.web.client.TestRestTemplate;
3131
import org.springframework.boot.test.web.server.LocalServerPort;
3232

3333
/**

0 commit comments

Comments
 (0)