File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
src/test/java/io/opentelemetry/example/telemetry Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 2727import org .mockserver .model .HttpRequest ;
2828import org .springframework .beans .factory .annotation .Autowired ;
2929import org .springframework .boot .resttestclient .TestRestTemplate ;
30+ import org .springframework .boot .resttestclient .autoconfigure .AutoConfigureTestRestTemplate ;
3031import org .springframework .boot .test .context .SpringBootTest ;
3132import org .springframework .boot .test .web .server .LocalServerPort ;
3233
3839@ SpringBootTest (
3940 classes = {Application .class },
4041 webEnvironment = RANDOM_PORT )
42+ @ AutoConfigureTestRestTemplate
4143class ApplicationTest {
4244
4345 @ LocalServerPort private int port ;
You can’t perform that action at this time.
0 commit comments