Skip to content

Commit f898990

Browse files
committed
fix
1 parent 339f599 commit f898990

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

telemetry-testing/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ dependencies {
3232
implementation("io.opentelemetry.instrumentation:opentelemetry-instrumentation-annotations:2.22.0")
3333
//spring modules
3434
implementation("org.springframework.boot:spring-boot-starter-web")
35+
implementation("org.springframework.boot:spring-boot-starter-restclient")
3536
testImplementation("org.springframework.boot:spring-boot-starter-test")
3637
testImplementation("org.springframework.boot:spring-boot-resttestclient")
3738

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.mockserver.model.HttpRequest;
2828
import org.springframework.beans.factory.annotation.Autowired;
2929
import org.springframework.boot.resttestclient.TestRestTemplate;
30+
import org.springframework.boot.resttestclient.autoconfigure.AutoConfigureTestRestTemplate;
3031
import org.springframework.boot.test.context.SpringBootTest;
3132
import org.springframework.boot.test.web.server.LocalServerPort;
3233

@@ -38,6 +39,7 @@
3839
@SpringBootTest(
3940
classes = {Application.class},
4041
webEnvironment = RANDOM_PORT)
42+
@AutoConfigureTestRestTemplate
4143
class ApplicationTest {
4244

4345
@LocalServerPort private int port;

0 commit comments

Comments
 (0)