File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/test/java/io/opentelemetry/example/telemetry Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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" )
Original file line number Diff line number Diff line change 77import static org .mockserver .model .HttpRequest .request ;
88import static org .mockserver .model .HttpResponse .response ;
99import 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
1212import com .google .protobuf .InvalidProtocolBufferException ;
1313import io .opentelemetry .proto .collector .metrics .v1 .ExportMetricsServiceRequest ;
2626import org .mockserver .model .Body ;
2727import org .mockserver .model .HttpRequest ;
2828import org .springframework .beans .factory .annotation .Autowired ;
29+ import org .springframework .boot .resttestclient .TestRestTemplate ;
2930import org .springframework .boot .test .context .SpringBootTest ;
30- import org .springframework .boot .test .web .client .TestRestTemplate ;
3131import org .springframework .boot .test .web .server .LocalServerPort ;
3232
3333/**
You can’t perform that action at this time.
0 commit comments